Skip to content

Commit

Permalink
Create github workflow for the v1 branch
Browse files Browse the repository at this point in the history
  • Loading branch information
vim345 committed Jul 20, 2023
1 parent 574ec46 commit 18437f3
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle

name: Java CI with Gradle
name: The common Java CI with Gradle

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_call:
inputs:
branch:
description: 'The branch to run the job on'
default: master
required: false
type: string

jobs:
build:
Expand Down Expand Up @@ -52,7 +55,7 @@ jobs:
git config --global user.name github_actions
git add *.svg
git commit -m "Autogenerated JaCoCo coverage badge" *.svg
git pull --rebase origin master
git pull --rebase origin ${{ inputs.branch }}
git push
fi
- name: Upload JaCoCo coverage report
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/gradle_master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle

name: Java CI with Gradle for master branch

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
uses: yelp/nrtsearch/.github/workflows/gradle.yml@main
with:
branch: master
16 changes: 16 additions & 0 deletions .github/workflows/gradle_v1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle

name: Java CI with Gradle for v1 branch

on:
push:
branches: [ v1 ]
pull_request:
branches: [ v1 ]

jobs:
build:
uses: yelp/nrtsearch/.github/workflows/gradle.yml@main
with:
branch: v1

0 comments on commit 18437f3

Please sign in to comment.