Skip to content

Commit 2fcf70f

Browse files
committed
chore(ci): use matrix to do platform specific tests
1 parent 0bbee2c commit 2fcf70f

2 files changed

Lines changed: 73 additions & 5 deletions

File tree

.github/workflows/build-and-deploy.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,14 @@ jobs:
7070
- check-secrets
7171
- staging-repo
7272
if: always() && !contains(needs.staging-repo.result, 'failure')
73-
strategy:
74-
fail-fast: false
75-
matrix:
76-
os: [ windows-2022, macos-12, ubuntu-22.04 ]
77-
runs-on: ${{ matrix.os }}
73+
# Uncomment if cross-compilation is needed
74+
# strategy:
75+
# fail-fast: false
76+
# matrix:
77+
# os: [ windows-2022, macos-12, ubuntu-22.04 ]
78+
# runs-on: ${{ matrix.os }}
79+
# Comment if cross-compilation is needed
80+
runs-on: ubuntu-22.04
7881
concurrency:
7982
group: build-${{ github.workflow }}-${{ matrix.os }}-${{ github.event.number || github.ref }}
8083
cancel-in-progress: true
@@ -94,9 +97,17 @@ jobs:
9497
maven-central-username: gciatto
9598
signing-key: ${{ secrets.SIGNING_KEY }}
9699
signing-password: ${{ secrets.SIGNING_PASSWORD }}
100+
101+
test-extensively:
102+
needs:
103+
- build
104+
uses: ./.github/workflows/test-extensively.yml
105+
# secrets: inherit
106+
97107
close-staging-repos:
98108
needs:
99109
- staging-repo
110+
- test-extensively
100111
- build
101112
runs-on: ubuntu-22.04
102113
if: needs.check-secrets.outputs.run-with-secrets == 'true'
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Test Extensively
2+
on:
3+
workflow_call:
4+
workflow_dispatch:
5+
6+
jobs:
7+
test-jvm:
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
os: [ windows-2022, macos-12, ubuntu-22.04 ]
12+
java-version: [11, 17, 19]
13+
jdk-dist:
14+
- adopt-hotspot
15+
- temurin
16+
# - adopt-openj9
17+
# - zulu
18+
runs-on: ${{ matrix.os }}
19+
concurrency:
20+
group: build-${{ github.workflow }}-${{ matrix.os }}-${{ matrix.java-version }}-${{ matrix.jdk-dist }}-${{ github.event.number || github.ref }}
21+
cancel-in-progress: true
22+
steps:
23+
- name: Checkout
24+
uses: DanySK/action-checkout@0.2.9
25+
- uses: DanySK/build-check-deploy-gradle-action@2.2.6
26+
with:
27+
java-distribution: ${{ matrix.jdk-dist }}
28+
java-version: ${{ matrix.java-version }}
29+
build-command: ./gradlew jsMainClasses jsTestClasses --parallel
30+
check-command: ./gradlew jvmTest --parallel
31+
should-run-codecov: false
32+
33+
test-js:
34+
strategy:
35+
fail-fast: false
36+
matrix:
37+
os: [ windows-2022, macos-12, ubuntu-22.04 ]
38+
node-version:
39+
- 'latest-16'
40+
- 'latest-18'
41+
- 'latest-19'
42+
- 'latest-20'
43+
runs-on: ${{ matrix.os }}
44+
env:
45+
ORG_GRADLE_PROJECT_nodeVersion: ${{ matrix.node-version }}
46+
concurrency:
47+
group: build-${{ github.workflow }}-${{ matrix.os }}-${{ matrix.node-version }}-${{ github.event.number || github.ref }}
48+
cancel-in-progress: true
49+
steps:
50+
- name: Checkout
51+
uses: DanySK/action-checkout@0.2.9
52+
- uses: DanySK/build-check-deploy-gradle-action@2.2.6
53+
with:
54+
build-command: ./gradlew jsMainClasses jsTestClasses --parallel
55+
check-command: ./gradlew jsTest --parallel
56+
clean-command: ./gradlew cleanTest
57+
should-run-codecov: false

0 commit comments

Comments
 (0)