-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (38 loc) · 1.15 KB
/
Copy pathmulti-platform.yml
File metadata and controls
47 lines (38 loc) · 1.15 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
name: Multi-Platform CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test-matrix:
name: Test on ${{ matrix.os }} with Java ${{ matrix.java }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
java: ['21', '22', '23-ea']
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install ncurses (Ubuntu)
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y libncurses-dev
- name: Install ncurses (macOS)
if: runner.os == 'macOS'
run: brew install ncurses
- name: Setup JDK ${{ matrix.java }}
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
cache: 'maven'
- name: Run tests
run: mvn clean test
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results-${{ matrix.os }}-java-${{ matrix.java }}
path: target/surefire-reports/