@@ -5,22 +5,22 @@ concurrency:
55on :
66 pull_request : { types: [opened, reopened, synchronize, ready_for_review] }
77 push : { branches: [ main ] }
8-
8+ permissions :
9+ contents : read
910env :
1011 LOG_LEVEL : info
11- SWIFT_DETERMINISTIC_HASHING : 1
12- POSTGRES_HOSTNAME : ' psql-a'
13- POSTGRES_HOSTNAME_A : ' psql-a'
14- POSTGRES_HOSTNAME_B : ' psql-b'
15- POSTGRES_DB : ' test_database'
16- POSTGRES_DB_A : ' test_database'
17- POSTGRES_DB_B : ' test_database'
18- POSTGRES_USER : ' test_username'
19- POSTGRES_USER_A : ' test_username'
20- POSTGRES_USER_B : ' test_username'
21- POSTGRES_PASSWORD : ' test_password'
22- POSTGRES_PASSWORD_A : ' test_password'
23- POSTGRES_PASSWORD_B : ' test_password'
12+ POSTGRES_HOSTNAME_A : &postgres_host_a 'psql-a'
13+ POSTGRES_HOSTNAME_B : &postgres_host_b 'psql-b'
14+ POSTGRES_HOSTNAME : *postgres_host_a
15+ POSTGRES_DB_A : &postgres_db_a 'test_database_a'
16+ POSTGRES_DB_B : &postgres_db_b 'test_database_b'
17+ POSTGRES_DB : *postgres_db_a
18+ POSTGRES_USER_A : &postgres_user_a 'test_username'
19+ POSTGRES_USER_B : &postgres_user_b 'test_username'
20+ POSTGRES_USER : *postgres_user_a
21+ POSTGRES_PASSWORD_A : &postgres_pass_a 'test_password'
22+ POSTGRES_PASSWORD_B : &postgres_pass_b 'test_password'
23+ POSTGRES_PASSWORD : *postgres_pass_a
2424
2525jobs :
2626 api-breakage :
@@ -42,29 +42,29 @@ jobs:
4242 fail-fast : false
4343 matrix :
4444 postgres-image :
45- - postgres:17
46- - postgres:15
47- - postgres:13
45+ - postgres:18
46+ - postgres:16
47+ - postgres:14
4848 swift-image :
49- - swift:5.10-jammy
5049 - swift:6.0-noble
5150 - swift:6.1-noble
51+ - swift:6.2-noble
5252 include :
53- - postgres-image : postgres:17
53+ - postgres-image : postgres:18
5454 postgres-auth : scram-sha-256
55- - postgres-image : postgres:15
55+ - postgres-image : postgres:16
5656 postgres-auth : md5
57- - postgres-image : postgres:13
57+ - postgres-image : postgres:14
5858 postgres-auth : trust
5959 runs-on : ubuntu-latest
6060 container : ${{ matrix.swift-image }}
6161 services :
62- psql-a :
62+ *postgres_host_a :
6363 image : ${{ matrix.postgres-image }}
6464 env :
65- POSTGRES_USER : test_username
66- POSTGRES_DB : test_database
67- POSTGRES_PASSWORD : test_password
65+ POSTGRES_USER : *postgres_user_a
66+ POSTGRES_DB : *postgres_db_a
67+ POSTGRES_PASSWORD : *postgres_pass_a
6868 POSTGRES_HOST_AUTH_METHOD : ${{ matrix.postgres-auth }}
6969 POSTGRES_INITDB_ARGS : --auth-host=${{ matrix.postgres-auth }}
7070 steps :
7373 - name : Check out package
7474 uses : actions/checkout@v5
7575 - name : Run local tests
76- run : swift test --enable-code-coverage
76+ run : swift test --enable-code-coverage --explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable
7777 - name : Upload coverage data
78787979 with :
@@ -82,22 +82,22 @@ jobs:
8282 linux-integration :
8383 if : ${{ !(github.event.pull_request.draft || false) }}
8484 runs-on : ubuntu-latest
85- container : swift:6.1 -noble
85+ container : swift:6.2 -noble
8686 services :
87- psql-a :
88- image : postgres:17
87+ *postgres_host_a :
88+ image : postgres:18
8989 env :
90- POSTGRES_USER : test_username
91- POSTGRES_DB : test_database
92- POSTGRES_PASSWORD : test_password
90+ POSTGRES_USER : *postgres_user_a
91+ POSTGRES_DB : *postgres_db_a
92+ POSTGRES_PASSWORD : *postgres_pass_a
9393 POSTGRES_HOST_AUTH_METHOD : scram-sha-256
9494 POSTGRES_INITDB_ARGS : --auth-host=scram-sha-256
95- psql-b :
96- image : postgres:15
95+ *postgres_host_b :
96+ image : postgres:16
9797 env :
98- POSTGRES_USER : test_username
99- POSTGRES_DB : test_database
100- POSTGRES_PASSWORD : test_password
98+ POSTGRES_USER : *postgres_user_b
99+ POSTGRES_DB : *postrges_db_b
100+ POSTGRES_PASSWORD : *postgres_pass_b
101101 POSTGRES_HOST_AUTH_METHOD : scram-sha-256
102102 POSTGRES_INITDB_ARGS : --auth-host=scram-sha-256
103103 steps :
@@ -118,10 +118,10 @@ jobs:
118118 fail-fast : false
119119 matrix :
120120 include :
121- - macos-version : macos-14
122- xcode-version : latest-stable
123121 - macos-version : macos-15
124122 xcode-version : latest-stable
123+ - macos-version : macos-26
124+ xcode-version : latest-stable
125125 runs-on : ${{ matrix.macos-version }}
126126 env :
127127 POSTGRES_HOSTNAME : 127.0.0.1
@@ -135,27 +135,27 @@ jobs:
135135 run : |
136136 brew upgrade || true
137137 export PATH="$(brew --prefix)/opt/postgresql@13/bin:$PATH" PGDATA=/tmp/vapor-postgres-test
138- brew install "postgresql@17 " && brew link --force "postgresql@17 "
138+ brew install "postgresql@18 " && brew link --force "postgresql@18 "
139139 initdb --locale=C --auth-host "scram-sha-256" -U "${POSTGRES_USER}" --pwfile=<(echo "${POSTGRES_PASSWORD}")
140140 pg_ctl start --wait
141141 timeout-minutes : 15
142142 - name : Checkout code
143143 uses : actions/checkout@v5
144144 - name : Run local tests
145- run : swift test --enable-code-coverage
145+ run : swift test --enable-code-coverage --explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable
146146 - name : Upload coverage data
147147148148 with :
149149 codecov_token : ${{ secrets.CODECOV_TOKEN || '' }}
150150
151151 musl :
152152 runs-on : ubuntu-latest
153- container : swift:6.1 -noble
153+ container : swift:6.2 -noble
154154 timeout-minutes : 30
155155 steps :
156156 - name : Check out code
157157 uses : actions/checkout@v5
158158 - name : Install SDK
159- run : swift sdk install https://download.swift.org/swift-6.1. 2-release/static-sdk/swift-6.1. 2-RELEASE/swift-6.1. 2-RELEASE_static-linux-0.0.1.artifactbundle.tar.gz --checksum df0b40b9b582598e7e3d70c82ab503fd6fbfdff71fd17e7f1ab37115a0665b3b
159+ run : swift sdk install https://download.swift.org/swift-6.2-release/static-sdk/swift-6.2-RELEASE/swift-6.2-RELEASE_static-linux-0.0.1.artifactbundle.tar.gz --checksum d2225840e592389ca517bbf71652f7003dbf45ac35d1e57d98b9250368769378
160160 - name : Build
161161 run : swift build --swift-sdk x86_64-swift-linux-musl
0 commit comments