Skip to content

Commit 5c7ebf4

Browse files
committed
chore(ci): improve ci.yaml, use expression
1 parent cee95d0 commit 5c7ebf4

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,15 @@
33

44
name: CI
55
on: [ push, pull_request, workflow_dispatch ]
6-
jobs:
76

8-
test-on-ubuntu:
9-
runs-on: ubuntu-latest
10-
timeout-minutes: 5
11-
name: Test on ubuntu
12-
steps:
13-
- uses: actions/checkout@v3
14-
with:
15-
submodules: recursive
16-
- run: test-cases/integration-test.sh
7+
jobs:
178

18-
test-on-macos:
9+
test:
1910
runs-on: ${{ matrix.os }}
2011
timeout-minutes: 5
2112
strategy:
2213
matrix:
23-
os: [ macos-11, macos-12 ]
14+
os: [ ubuntu-latest, macos-11, macos-12 ]
2415
fail-fast: false
2516
max-parallel: 64
2617
name: Test on ${{ matrix.os }}
@@ -30,4 +21,6 @@ jobs:
3021
with:
3122
submodules: recursive
3223
- run: brew install coreutils gnu-sed
24+
# https://docs.github.com/en/actions/learn-github-actions/expressions
25+
if: ${{ startsWith(matrix.os, 'macos') }}
3326
- run: test-cases/integration-test.sh

0 commit comments

Comments
 (0)