Skip to content

Commit a312e19

Browse files
committed
Add tests for more Swift versions
1 parent 55492af commit a312e19

File tree

1 file changed

+35
-3
lines changed

1 file changed

+35
-3
lines changed

.github/workflows/CI.yml

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ jobs:
99
strategy:
1010
matrix:
1111
version:
12-
- nightly
1312
- 5.2.5
13+
- nightly-5.3
14+
- nightly
1415
container:
1516
image: stevapple/swift-scf:${{ matrix.version }}
1617
steps:
@@ -27,7 +28,35 @@ jobs:
2728
cd Examples/LocalDebugging/MyCloudFunction
2829
swift build
2930
30-
test-linux:
31+
test-linux-release:
32+
name: Test on Linux
33+
runs-on: ubuntu-latest
34+
strategy:
35+
matrix:
36+
os:
37+
- bionic
38+
- focal
39+
- amazonlinux2
40+
- centos8
41+
version:
42+
- 5.2.5
43+
container:
44+
image: swift:${{ matrix.version }}-${{ matrix.os }}
45+
steps:
46+
- name: Checkout
47+
uses: actions/checkout@v2
48+
- name: Test
49+
run: swift test --enable-test-discovery
50+
- name: Test CloudFunctions example
51+
run: |
52+
cd Examples/CloudFunctions
53+
swift build
54+
- name: Test LocalDebugging example
55+
run: |
56+
cd Examples/LocalDebugging/MyCloudFunction
57+
swift build
58+
59+
test-linux-nightly:
3160
name: Test on Linux
3261
runs-on: ubuntu-latest
3362
strategy:
@@ -37,8 +66,11 @@ jobs:
3766
- focal
3867
- amazonlinux2
3968
- centos8
69+
version:
70+
- nightly
71+
- nightly-5.3
4072
container:
41-
image: swift:5.2.5-${{ matrix.os }}
73+
image: swiftlang/swift:${{ matrix.version }}-${{ matrix.os }}
4274
steps:
4375
- name: Checkout
4476
uses: actions/checkout@v2

0 commit comments

Comments
 (0)