Skip to content

Commit 415bea8

Browse files
committed
run native tests based on the os
1 parent 05d785e commit 415bea8

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ${{ matrix.os }}
1010
strategy:
1111
matrix:
12-
os: [ ubuntu-latest, windows-latest ]
12+
os: [ ubuntu-latest, windows-latest, macos-latest ]
1313
steps:
1414
- name: Checkout
1515
uses: actions/checkout@v4
@@ -18,8 +18,17 @@ jobs:
1818
with:
1919
distribution: 'temurin'
2020
java-version: 21
21-
- name: Install dependencies and run tests
21+
- name: Install dependencies and run JVM tests
2222
run: ./gradlew jvmTest koverXmlReport
23+
- name: Run macOS native tests
24+
if: runner.os == 'macOS'
25+
run: ./gradlew macosArm64Test
26+
- name: Run Linux native tests
27+
if: runner.os == 'Linux'
28+
run: ./gradlew linuxX64Test
29+
- name: Run Windows native tests
30+
if: runner.os == 'Windows'
31+
run: ./gradlew mingwX64Test
2332
- name: Upload coverage reports to Codecov
2433
uses: codecov/codecov-action@v5
2534
with:

0 commit comments

Comments
 (0)