-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (28 loc) · 1.05 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Test Build and Codacy Coverage
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Maven Package
run: mvn package
- name: Codacy Coverage Reporter
# You may pin to the exact commit or the version.
# uses: codacy/codacy-coverage-reporter-action@31721d7c5d2357955879f3ecbae83bf199c16000
uses: codacy/[email protected]
with:
# API project token to retrieve your remote Codacy configuration for the project being analyzed
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
# API account token to retrieve your remote Codacy configuration for the project being analyzed
api-token: ${{ secrets.CODACY_TOKEN }}
# Optional comma separated list of coverage reports to send to Codacy
coverage-reports: ./consumer/target/jacoco.xml, ./producer/target/jacoco.xml