Update build.yml #6
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 | |
on: | |
push: | |
branches: | |
- master | |
- develop | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
unit-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Build with Maven and generate JaCoCo report | |
run: mvn clean verify | |
working-directory: ./syg-backend | |
- name: Upload JaCoCo report | |
uses: actions/upload-artifact@v4 | |
with: | |
name: jacoco-report | |
path: | | |
*/target/site/jacoco/jacoco-aggregate |