-
Notifications
You must be signed in to change notification settings - Fork 7
44 lines (42 loc) · 1.08 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
name: CI
on:
push:
paths-ignore:
- 'README.md'
- '.github/**.md'
- '.github/img/**'
pull_request:
paths-ignore:
- 'README.md'
- '.github/**.md'
- '.github/img/**'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
cache: 'gradle'
- name: Run checks (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: |
chmod +x ./gradlew
sudo apt install -y xvfb
xvfb-run --auto-servernum ./gradlew --no-daemon check
./gradlew --stop
- name: Run checks (Windows)
if: matrix.os == 'windows-latest'
run: |
./gradlew --no-daemon check
./gradlew --stop
- uses: codecov/codecov-action@v3
if: success() && matrix.os == 'ubuntu-latest'
with:
fail_ci_if_error: true
files: build/reports/kover/report.xml