Skip to content

Commit d8dc71e

Browse files
committed
Update Test GitHub Action
1 parent 410aebe commit d8dc71e

File tree

1 file changed

+28
-5
lines changed

1 file changed

+28
-5
lines changed

.github/workflows/tests.yml

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Tests
22

3-
on:
3+
on:
44
pull_request:
55
push:
66
branches:
@@ -31,7 +31,7 @@ jobs:
3131
uses: actions/checkout@v2
3232
- name: Run tests
3333
run: swift test --enable-test-discovery
34-
linux-5_4-plus:
34+
linux-5_4:
3535
runs-on: ubuntu-latest
3636
strategy:
3737
fail-fast: false
@@ -48,12 +48,35 @@ jobs:
4848
uses: actions/checkout@v2
4949
- name: Run tests (without test discovery flag)
5050
run: swift test -Xswiftc -Xfrontend -Xswiftc -sil-verify-none
51+
linux-5_5-plus:
52+
runs-on: ubuntu-latest
53+
strategy:
54+
fail-fast: false
55+
matrix:
56+
image:
57+
- swiftlang/swift:nightly-5.5-xenial
58+
- swiftlang/swift:nightly-5.5-bionic
59+
- swiftlang/swift:nightly-5.5-focal
60+
- swiftlang/swift:nightly-5.5-centos8
61+
- swiftlang/swift:nightly-5.5-amazonlinux2
62+
- swiftlang/swift:nightly-xenial
63+
- swiftlang/swift:nightly-bionic
64+
- swiftlang/swift:nightly-focal
65+
- swiftlang/swift:nightly-centos8
66+
- swiftlang/swift:nightly-amazonlinux2
67+
container: ${{ matrix.image }}
68+
steps:
69+
- name: Checkout code
70+
uses: actions/checkout@v2
71+
- name: Run tests
72+
run: swift test
5173
osx:
52-
runs-on: macOS-latest
74+
runs-on: macOS-11
5375
steps:
5476
- name: Select latest available Xcode
55-
uses: maxim-lobanov/[email protected]
56-
with: { 'xcode-version': 'latest' }
77+
uses: maxim-lobanov/[email protected]
78+
with:
79+
xcode-version: latest
5780
- name: Checkout code
5881
uses: actions/checkout@v2
5982
- name: Run tests

0 commit comments

Comments
 (0)