Skip to content

Commit 70b8451

Browse files
committed
Speed up CI
1 parent cd52cb7 commit 70b8451

File tree

1 file changed

+38
-3
lines changed

1 file changed

+38
-3
lines changed

.github/workflows/ci.yml

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ jobs:
5151
- name: Check Document Generation
5252
run: sbt docs/compileDocs
5353

54-
test:
54+
test_scala:
5555
runs-on: ubuntu-latest
5656
timeout-minutes: 30
5757
strategy:
5858
fail-fast: false
5959
matrix:
60-
java: ['11', '17', '21']
60+
java: ['17']
6161
scala: ['2.12.x', '2.13.x', '3.x']
6262
platform: ['JVM', 'Native', 'JS']
6363
steps:
@@ -86,9 +86,44 @@ jobs:
8686
- name: Run tests
8787
run: sbt ++${{ matrix.scala }} zioProcess${{ matrix.platform }}/test
8888

89+
test_jvms:
90+
runs-on: ubuntu-latest
91+
timeout-minutes: 30
92+
strategy:
93+
fail-fast: false
94+
matrix:
95+
java: [ '11', '17', '21' ]
96+
scala: [ '2.13.x' ]
97+
steps:
98+
- name: Checkout current branch
99+
uses: actions/checkout@v6
100+
with:
101+
fetch-depth: 0
102+
- name: Setup Java
103+
uses: actions/setup-java@v5
104+
with:
105+
distribution: temurin
106+
java-version: ${{ matrix.java }}
107+
check-latest: true
108+
- name: Setup sbt
109+
uses: sbt/setup-sbt@v1
110+
- name: Cache scala dependencies
111+
uses: coursier/cache-action@v7
112+
- name: Install libuv
113+
if: matrix.platform == 'Native'
114+
run: sudo apt-get update && sudo apt-get install -y libuv1-dev
115+
- name: Setup NodeJS
116+
uses: actions/setup-node@v4
117+
if: matrix.platform == 'JS'
118+
with:
119+
node-version: 21.6.1
120+
- name: Run tests
121+
run: sbt ++${{ matrix.scala }} zioProcess${{ matrix.platform }}/test
122+
123+
89124
ci:
90125
runs-on: ubuntu-latest
91-
needs: [lint, website, test]
126+
needs: [lint, website, test_scala, test_jvms]
92127
steps:
93128
- name: Aggregate job outcomes
94129
run: echo "build succeeded"

0 commit comments

Comments
 (0)