1
1
name : CI
2
+ concurrency :
3
+ group : ${{ github.workflow }}-${{ github.ref }}
4
+ cancel-in-progress : true
2
5
on :
3
6
push :
4
7
branches :
13
16
fail-fast : false
14
17
matrix :
15
18
container :
16
- - swift:5.5-bionic
17
19
- swift:5.6-focal
18
20
- swift:5.7-jammy
21
+ - swift:5.8-jammy
22
+ - swiftlang/swift:nightly-5.9-jammy
19
23
- swiftlang/swift:nightly-main-jammy
20
24
container : ${{ matrix.container }}
21
25
runs-on : ubuntu-latest
27
31
- name : Run unit tests with code coverage and Thread Sanitizer
28
32
run : swift test --enable-test-discovery --filter=^PostgresNIOTests --sanitize=thread --enable-code-coverage
29
33
- name : Submit coverage report to Codecov.io
30
- if : " !contains(matrix.container, 'nightly') "
34
+ if : ${{ !contains(matrix.container, '5.8') }}
31
35
uses : vapor/swift-codecov-action@v0.2
32
36
with :
33
37
cc_flags : ' unittests'
52
56
dbauth : md5
53
57
- dbimage : postgres:11
54
58
dbauth : trust
55
- container : swift:5.7-jammy
59
+ container :
60
+ image : swift:5.8-jammy
56
61
runs-on : ubuntu-latest
57
62
env :
58
63
LOG_LEVEL : debug
@@ -114,14 +119,13 @@ jobs:
114
119
fail-fast : false
115
120
matrix :
116
121
dbimage :
117
- # Only test the lastest version on macOS, let Linux do the rest
122
+ # Only test one version on macOS, let Linux do the rest
118
123
- postgresql@14
119
124
dbauth :
120
125
# Only test one auth method on macOS, Linux tests will cover the others
121
126
- scram-sha-256
122
127
xcode :
123
128
- latest-stable
124
- # - latest
125
129
runs-on : macos-12
126
130
env :
127
131
LOG_LEVEL : debug
@@ -145,14 +149,12 @@ jobs:
145
149
- name : Checkout code
146
150
uses : actions/checkout@v3
147
151
- name : Run all tests
148
- run : |
149
- swift test --enable-test-discovery -Xlinker -rpath \
150
- -Xlinker $(xcode-select -p)/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.5/macosx
152
+ run : swift test
151
153
152
154
api-breakage :
153
155
if : github.event_name == 'pull_request'
154
156
runs-on : ubuntu-latest
155
- container : swift:5.7 -jammy
157
+ container : swift:5.8 -jammy
156
158
steps :
157
159
- name : Checkout
158
160
uses : actions/checkout@v3
@@ -162,15 +164,16 @@ jobs:
162
164
- name : Mark the workspace as safe
163
165
run : git config --global --add safe.directory ${GITHUB_WORKSPACE}
164
166
- name : API breaking changes
165
- run : |
166
- swift package diagnose-api-breaking-changes origin/main
167
+ run : swift package diagnose-api-breaking-changes origin/main
168
+
167
169
test-exports :
168
170
name : Test exports
169
171
runs-on : ubuntu-latest
172
+ container : swift:5.8-jammy
170
173
steps :
171
174
- name : Check out package
172
175
uses : actions/checkout@v3
173
176
with :
174
177
fetch-depth : 0
175
178
- name : Build
176
- run : swift build -Xswiftc -DBUILDING_DOCC
179
+ run : swift build -Xswiftc -DBUILDING_DOCC
0 commit comments