Add support for calls to compile method using GRPC #31
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Test (Merge to Master) | |
on: | |
push: | |
branches: [master] | |
jobs: | |
build: | |
name: Build and Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.11 | |
- name: Maven Package | |
run: mvn clean install -Dmaven.test.skip=true | |
test-coverage: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- run: ./environment/build.sh && mvn clean && sudo mvn -B verify -P coverage --no-transfer-progress | |
- name: jacoco-badge-generator | |
uses: cicirello/[email protected] | |
with: | |
generate-coverage-badge: true | |
- name: Log coverage percentage | |
run: | | |
echo "coverage = ${{ steps.jacoco.outputs.coverage }}" | |
echo "branch coverage = ${{ steps.jacoco.outputs.branches }}" | |
#- name: Commit the badge (if it changed) | |
# if: github.ref == 'refs/heads/master' | |
# run: | | |
# if [[ `git status --porcelain` ]]; then | |
# git config --global user.name 'zakaria maaraki' | |
# git config user.email "[email protected]" | |
# git add -A | |
# git commit -m "Autogenerated JaCoCo coverage badge" | |
# git push origin HEAD:master | |
# fi |