-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (48 loc) · 1.3 KB
/
ci.yml
File metadata and controls
56 lines (48 loc) · 1.3 KB
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
52
53
54
55
56
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
permissions:
contents: read
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest ]
java: [ '21' ]
include:
- os: ubuntu-latest
java: '21'
primary: true
steps:
- uses: actions/checkout@v6
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v5
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
cache: maven
- name: Build and test
shell: bash
run: ./mvnw clean verify
- name: Upload test results
if: failure()
uses: actions/upload-artifact@v4
with:
name: surefire-reports-${{ matrix.os }}-jdk${{ matrix.java }}
path: target/surefire-reports/
retention-days: 14
- name: Upload coverage to Codecov
if: matrix.primary
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: target/site/jacoco/jacoco.xml
fail_ci_if_error: true