-
Notifications
You must be signed in to change notification settings - Fork 94
36 lines (32 loc) · 873 Bytes
/
build.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: build
on:
push:
paths-ignore:
- '**/*.md'
pull_request:
paths-ignore:
- '**/*.md'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- uses: gradle/actions/wrapper-validation@v3
- uses: gradle/actions/setup-gradle@v3
- name: Build with Gradle
run: ./gradlew build --warning-mode all
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: ${{ !cancelled() }}
with:
report_paths: 'build/test-results/**/TEST-*.xml'
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./lib/build/reports/jacoco/test/jacocoTestReport.xml