Skip to content

Commit

Permalink
chore: add file coverage.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
andersonleite1 committed Aug 14, 2024
1 parent 8a0a04d commit 2203dbb
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Code Coverage

on: [push]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'

- name: Build with Maven
run: mvn clean test

- name: Generate JaCoCo coverage report
run: mvn jacoco:report

- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: target/site/jacoco/jacoco.xml

0 comments on commit 2203dbb

Please sign in to comment.