-
Notifications
You must be signed in to change notification settings - Fork 21
41 lines (39 loc) · 1.14 KB
/
check.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
name: Java CI
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
java_version: ['17', '20']
os: [ubuntu-latest, windows-latest, macOS-latest]
include:
- os: windows-latest
prefix: win
- os: ubuntu-latest
prefix: nix
- os: macOS-latest
prefix: mac
steps:
- uses: actions/[email protected]
with:
submodules: true
lfs: true
- name: Set up JDK ${{ matrix.java_version }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java_version }}
distribution: 'liberica'
- name: Build with Gradle
run: ./gradlew check --stacktrace
- name: Archive test results
if: always() && matrix.prefix == 'nix'
uses: EnricoMi/publish-unit-test-result-action@v2
with:
junit_files: "**/test-results/test/**/*.xml"
- name: Archive test results
if: always() && matrix.prefix != 'nix'
uses: EnricoMi/publish-unit-test-result-action/composite@v2
with:
junit_files: "**/test-results/test/**/*.xml"