Skip to content

Commit d30ace0

Browse files
create main.yml
1 parent 358d4cb commit d30ace0

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/main.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: my-check
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-java@v3
14+
with:
15+
java-version: '21'
16+
distribution: 'temurin'
17+
- uses: gradle/gradle-build-action@v2
18+
with:
19+
gradle-version: 8.8
20+
arguments: build
21+
build-root-directory: app
22+
- name: Publish code coverage
23+
uses: paambaati/[email protected]
24+
env:
25+
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
26+
JACOCO_SOURCE_PATH: app/src/main/java
27+
with:
28+
coverageCommand: make report
29+
coverageLocations: ${{github.workspace}}/app/build/reports/jacoco/test/jacocoTestReport.xml:jacoco

0 commit comments

Comments
 (0)