-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (49 loc) · 1.39 KB
/
ci.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
39
40
41
42
43
44
45
46
47
48
49
50
51
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
name: test-on-${{matrix.java}}
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 17,21 ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Cache Gradle packages
uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
restore-keys: ${{ runner.os }}-gradle
- name: Build with Gradle
env:
CI: true
run: ./gradlew build
- uses: codecov/codecov-action@v4
with:
files: core/build/reports/kover/report.xml,rest/build/reports/kover/report.xml
- name: Test Report ${{matrix.java}}
if: always()
uses: ScaCap/action-surefire-report@v1.9.0
with:
check_name: Test Report ${{matrix.java}}
report_paths: '**/build/test-results/test/TEST-*.xml'
fail_on_test_failures: true
fail_if_no_tests: true
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: upload artifacts
uses: actions/upload-artifact@v4
if: always()
with:
name: build-reports-jdk-${{matrix.java}}
path: "**/build/reports"