-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 1008 Bytes
/
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
34
35
36
name: Java CI
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- uses: gradle/gradle-build-action@v3
with:
arguments: build
build-root-directory: app
gradle-version: 8.7
- run: make lint
working-directory: ./app
- run: make test
working-directory: ./app
- name: Publish code coverage
if: ${{ github.event_name == 'push' }}
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
JACOCO_SOURCE_PATH: ${{github.workspace}}/app/src/main/java
with:
debug: true
workingDirectory: ./app
coverageCommand: make report
coverageLocations: ${{github.workspace}}/app/build/reports/jacoco/test/jacocoTestReport.xml:jacoco