Skip to content

Commit

Permalink
Add Jacoco report artifact to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
geo-tp authored Nov 12, 2024
1 parent 3c9ed94 commit f95bea0
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,16 @@ jobs:
sudo apt-get install mysql-client
mysql -u root -proot -e "CREATE DATABASE IF NOT EXISTS autocrud;"
# Run tests
- name: Run tests with Maven
run: mvn -B test --file pom.xml
# Run tests and generate Jacoco coverage report
- name: Run tests with Maven and generate coverage report
run: mvn test jacoco:report

# Upload coverage report as an artifact
- name: Upload coverage report
uses: actions/upload-artifact@v3
with:
name: coverage-report
path: target/site/jacoco/index.html

build:
runs-on: ubuntu-latest
Expand Down

0 comments on commit f95bea0

Please sign in to comment.