-
Notifications
You must be signed in to change notification settings - Fork 10
51 lines (43 loc) · 1.21 KB
/
main.yaml
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-and-test:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- name: Setup Java
uses: actions/setup-java@v4.0.0
with:
java-version: '11'
distribution: 'temurin'
- name: Checkout
uses: actions/checkout@v4
- name: Check
uses: gradle/gradle-build-action@v3.1.0
with:
arguments: check -Penable_coverage=${{ matrix.os == 'ubuntu-latest' }} --no-configuration-cache --stacktrace
- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
with:
name: test-reports-${{ matrix.os }}
path: |
testing/tests/build/reports/tests
lang/api/build/reports/tests
core/model/impl/build/reports/tests
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4.0.2
if: matrix.os == 'ubuntu-latest'
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: build/reports/kover/report.xml
verbose: true