Skip to content

Commit 945d075

Browse files
Create codacy.yml
1 parent 8fcb70d commit 945d075

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/codacy.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Run Tests and send coverage
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
environment: dev
10+
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Set up JDK
14+
uses: actions/setup-java@v3
15+
with:
16+
java-version: '8'
17+
distribution: 'temurin'
18+
- name: Test with Maven
19+
run: mvn clean test
20+
21+
- name: Codacy Coverage Reporter
22+
shell: bash
23+
run: |
24+
bash <(curl -Ls https://coverage.codacy.com/get.sh) report --codacy-api-base-url ${{ vars.API_BASE_URL }} -t ${{ secrets.CODACY_PROJECT_TOKEN }}
25+

0 commit comments

Comments
 (0)