Skip to content

Commit f1be5a1

Browse files
Merge pull request #14 from yutailang0119/actions/use-matrix
[GitHub Actions] Use strategy.matrix
2 parents 48ff975 + be01d66 commit f1be5a1

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed

.github/workflows/test.yml

+10-15
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,14 @@ on:
66
pull_request:
77

88
jobs:
9-
macos:
10-
runs-on: macos-latest
9+
test:
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
matrix:
13+
os: [macos-latest, ubuntu-latest]
1114
steps:
12-
- uses: actions/checkout@v2
13-
- name: Build
14-
run: swift build
15-
- name: Run tests
16-
run: swift test
17-
linux:
18-
runs-on: ubuntu-latest
19-
steps:
20-
- uses: actions/checkout@v2
21-
- name: Build
22-
run: swift build
23-
- name: Run tests
24-
run: swift test
15+
- uses: actions/checkout@v2
16+
- name: Build
17+
run: swift build
18+
- name: Run tests
19+
run: swift test

0 commit comments

Comments
 (0)