@@ -18,13 +18,13 @@ jobs:
18
18
fail-fast : false
19
19
matrix :
20
20
swift-image :
21
- - swift:5.6-focal
22
21
- swift:5.7-jammy
23
22
- swift:5.8-jammy
24
- - swiftlang/swift:nightly-5.9-jammy
23
+ - swift:5.9-jammy
24
+ - swiftlang/swift:nightly-5.10-jammy
25
25
- swiftlang/swift:nightly-main-jammy
26
26
include :
27
- - swift-image : swift:5.8 -jammy
27
+ - swift-image : swift:5.9 -jammy
28
28
code-coverage : true
29
29
container : ${{ matrix.swift-image }}
30
30
runs-on : ubuntu-latest
37
37
printf 'OS: %s\nTag: %s\nVersion:\n' "${SWIFT_PLATFORM}-${RUNNER_ARCH}" "${SWIFT_VERSION}"
38
38
swift --version
39
39
- name : Check out package
40
- uses : actions/checkout@v3
40
+ uses : actions/checkout@v4
41
41
- name : Run unit tests with Thread Sanitizer
42
42
env :
43
43
CODE_COVERAGE : ${{ matrix.code-coverage && '--enable-code-coverage' || '' }}
@@ -53,18 +53,18 @@ jobs:
53
53
fail-fast : false
54
54
matrix :
55
55
postgres-image :
56
- - postgres:15
57
- - postgres:13
58
- - postgres:11
56
+ - postgres:16
57
+ - postgres:14
58
+ - postgres:12
59
59
include :
60
- - postgres-image : postgres:15
60
+ - postgres-image : postgres:16
61
61
postgres-auth : scram-sha-256
62
- - postgres-image : postgres:13
62
+ - postgres-image : postgres:14
63
63
postgres-auth : md5
64
- - postgres-image : postgres:11
64
+ - postgres-image : postgres:12
65
65
postgres-auth : trust
66
66
container :
67
- image : swift:5.8 -jammy
67
+ image : swift:5.9 -jammy
68
68
volumes : [ 'pgrunshare:/var/run/postgresql' ]
69
69
runs-on : ubuntu-latest
70
70
env :
@@ -109,15 +109,15 @@ jobs:
109
109
[[ -z "${SWIFT_VERSION}" ]] && SWIFT_VERSION="$(cat /.swift_tag 2>/dev/null || true)"
110
110
printf 'OS: %s\nTag: %s\nVersion:\n' "${SWIFT_PLATFORM}-${RUNNER_ARCH}" "${SWIFT_VERSION}" && swift --version
111
111
- name : Check out package
112
- uses : actions/checkout@v3
112
+ uses : actions/checkout@v4
113
113
with : { path: 'postgres-nio' }
114
114
- name : Run integration tests
115
115
run : swift test --package-path postgres-nio --filter=^IntegrationTests
116
116
- name : Check out postgres-kit dependent
117
- uses : actions/checkout@v3
117
+ uses : actions/checkout@v4
118
118
with : { repository: 'vapor/postgres-kit', path: 'postgres-kit' }
119
119
- name : Check out fluent-postgres-driver dependent
120
- uses : actions/checkout@v3
120
+ uses : actions/checkout@v4
121
121
with : { repository: 'vapor/fluent-postgres-driver', path: 'fluent-postgres-driver' }
122
122
- name : Use local package in dependents
123
123
run : |
@@ -135,13 +135,13 @@ jobs:
135
135
matrix :
136
136
postgres-formula :
137
137
# Only test one version on macOS, let Linux do the rest
138
- - postgresql@14
138
+ - postgresql@15
139
139
postgres-auth :
140
140
# Only test one auth method on macOS, Linux tests will cover the others
141
141
- scram-sha-256
142
142
xcode-version :
143
143
- ' ~14.3'
144
- - ' 15.0-beta '
144
+ - ' ~ 15.0'
145
145
runs-on : macos-13
146
146
env :
147
147
POSTGRES_HOSTNAME : 127.0.0.1
@@ -164,7 +164,7 @@ jobs:
164
164
pg_ctl start --wait
165
165
timeout-minutes : 2
166
166
- name : Checkout code
167
- uses : actions/checkout@v3
167
+ uses : actions/checkout@v4
168
168
- name : Run all tests
169
169
run : swift test
170
170
@@ -174,21 +174,24 @@ jobs:
174
174
container : swift:jammy
175
175
steps :
176
176
- name : Checkout
177
- uses : actions/checkout@v3
177
+ uses : actions/checkout@v4
178
178
with :
179
179
fetch-depth : 0
180
180
# https://github.com/actions/checkout/issues/766
181
- - name : Mark the workspace as safe
182
- run : git config --global --add safe.directory "${GITHUB_WORKSPACE}"
183
181
- name : API breaking changes
184
- run : swift package diagnose-api-breaking-changes origin/main
182
+ run : |
183
+ git config --global --add safe.directory "${GITHUB_WORKSPACE}"
184
+ swift package diagnose-api-breaking-changes origin/main
185
185
186
186
gh-codeql :
187
187
runs-on : ubuntu-latest
188
- permissions : { security-events: write }
188
+ container : swift:5.8-jammy # CodeQL currently broken with 5.9
189
+ permissions : { actions: write, contents: read, security-events: write }
189
190
steps :
190
191
- name : Check out code
191
- uses : actions/checkout@v3
192
+ uses : actions/checkout@v4
193
+ - name : Mark repo safe in non-fake global config
194
+ run : git config --global --add safe.directory "${GITHUB_WORKSPACE}"
192
195
- name : Initialize CodeQL
193
196
uses : github/codeql-action/init@v2
194
197
with :
0 commit comments