-
Notifications
You must be signed in to change notification settings - Fork 22
38 lines (37 loc) · 1 KB
/
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
37
38
name: Build
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: 'gradle'
- name: Validate Gradle Wrapper Checksums
uses: gradle/actions/wrapper-validation@v3
- name: Build with Gradle
run: ./gradlew clean build
- name: Upload coverage report to CodeCov
uses: codecov/codecov-action@v4
with:
files: build/reports/jacoco/jacocoRootReport/jacocoRootReport.xml
fail_ci_if_error: true
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload reports and test results to GitHub
uses: actions/upload-artifact@v4
with:
name: reports-and-test-results
path: |
build/reports/
build/test-results/