Test GH actions workflow for Codecov coverage

This commit is contained in:
Alex Herbert 2022-02-13 21:30:40 +00:00
parent 5f30d93b32
commit b228aea7f7
1 changed files with 5 additions and 5 deletions

View File

@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
name: Coveralls
name: Coverage
on: [push, pull_request]
@ -39,9 +39,9 @@ jobs:
distribution: adopt
java-version: ${{ matrix.java }}
- name: Build with Maven
run: mvn -V test --file pom.xml --no-transfer-progress
run: mvn -V test jacoco:report --file pom.xml --no-transfer-progress
- name: Coveralls
uses: coverallsapp/github-action@1.1.3
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
files: ./target/site/jacoco/jacoco.xml