Skip to content

Commit ae18b92

Browse files
committed
workflow: add test ci
1 parent a24bc4c commit ae18b92

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Test CI
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
jobs:
10+
build:
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
os: [ubuntu-latest, windows-latest, macos-latest]
15+
16+
runs-on: ${{ matrix.os }}
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: actions/setup-java@v4
21+
with:
22+
distribution: 'temurin'
23+
java-version: '21'
24+
25+
- name: Linux - Make
26+
if: runner.os == 'Linux'
27+
run: make testAll
28+
29+
- name: macOS - Make
30+
if: runner.os == 'macOS'
31+
run: make COMMAND="MACOSX_DEPLOYMENT_TARGET=12.0 ./gradlew" testAll
32+
33+
- name: Windows - Prepare VS Shell
34+
if: runner.os == 'Windows'
35+
uses: egor-tensin/vs-shell@v2
36+
with:
37+
arch: x64
38+
- name: Windows - Make
39+
if: runner.os == 'Windows'
40+
run: make COMMAND=.\gradlew testAll

0 commit comments

Comments
 (0)