Skip to content

Commit 8a7baec

Browse files
author
olme04
authored
introduces local reusable workflows (#207)
1 parent a94c510 commit 8a7baec

File tree

5 files changed

+19
-15
lines changed

5 files changed

+19
-15
lines changed

.github/workflows/ci-dev.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ on:
88

99
jobs:
1010
test:
11-
uses: rsocket/rsocket-kotlin/.github/workflows/run-tests.yml@master
11+
uses: ./.github/workflows/run-tests.yml
1212
publish:
1313
needs: [ test ]
14-
uses: rsocket/rsocket-kotlin/.github/workflows/publish-snapshot.yml@master
14+
uses: ./.github/workflows/publish-snapshot.yml
1515
with:
1616
add-branch-suffix: true

.github/workflows/ci-main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ on:
88

99
jobs:
1010
test:
11-
uses: rsocket/rsocket-kotlin/.github/workflows/run-tests.yml@master
11+
uses: ./.github/workflows/run-tests.yml
1212
publish:
1313
needs: [ test ]
14-
uses: rsocket/rsocket-kotlin/.github/workflows/publish-snapshot.yml@master
14+
uses: ./.github/workflows/publish-snapshot.yml
1515
with:
1616
add-branch-suffix: false

.github/workflows/ci-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ on:
66

77
jobs:
88
test:
9-
uses: rsocket/rsocket-kotlin/.github/workflows/run-tests.yml@master
9+
uses: ./.github/workflows/run-tests.yml

.github/workflows/ci-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
88
test:
9-
uses: rsocket/rsocket-kotlin/.github/workflows/run-tests.yml@master
9+
uses: ./.github/workflows/run-tests.yml
1010
publish:
1111
needs: [ test ]
1212
runs-on: macos-11

.github/workflows/run-tests.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@ env:
66

77
jobs:
88
jvm-test:
9-
name: Run JVM tests
9+
name: Run JVM(${{ matrix.target }}) tests
1010
runs-on: ubuntu-latest
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
target: [ '', '11', '17' ]
1115
steps:
1216
- uses: actions/checkout@v2
1317
- run: echo "KONAN_DATA_DIR=${HOME}/.gradle/konan" >> $GITHUB_ENV
@@ -16,9 +20,7 @@ jobs:
1620
uses: gradle/gradle-build-action@v2
1721
with:
1822
arguments: |
19-
jvmTest
20-
jvm11Test
21-
jvm17Test
23+
jvm${{ matrix.target }}Test
2224
--scan
2325
--info
2426
--continue
@@ -36,8 +38,12 @@ jobs:
3638
retention-days: 1
3739

3840
js-test:
39-
name: Run JS tests
41+
name: Run JS(${{ matrix.target }}) tests
4042
runs-on: ubuntu-latest
43+
strategy:
44+
fail-fast: false
45+
matrix:
46+
target: [ Ir, Legacy ]
4147
steps:
4248
- uses: actions/checkout@v2
4349
- run: echo "KONAN_DATA_DIR=${HOME}/.gradle/konan" >> $GITHUB_ENV
@@ -46,10 +52,8 @@ jobs:
4652
uses: gradle/gradle-build-action@v2
4753
with:
4854
arguments: |
49-
jsIrNodeTest
50-
jsIrBrowserTest
51-
jsLegacyNodeTest
52-
jsLegacyBrowserTest
55+
js${{ matrix.target }}NodeTest
56+
js${{ matrix.target }}BrowserTest
5357
--scan
5458
--info
5559
--continue

0 commit comments

Comments
 (0)