2626 api-breakage :
2727 if : ${{ github.event_name == 'pull_request' && !(github.event.pull_request.draft || false) }}
2828 runs-on : ubuntu-latest
29- container : swift:jammy
29+ container : swift:noble
3030 steps :
3131 - name : Checkout
3232 uses : actions/checkout@v4
@@ -36,86 +36,25 @@ jobs:
3636 git config --global --add safe.directory "${GITHUB_WORKSPACE}"
3737 swift package diagnose-api-breaking-changes origin/main
3838
39- dependency-graph :
40- if : ${{ github.event_name == 'push' }}
41- runs-on : ubuntu-latest
42- container : swift:jammy
43- permissions :
44- contents : write
45- steps :
46- - name : Check out code
47- uses : actions/checkout@v4
48- - name : Fix Git configuration
49- run : |
50- git config --global --add safe.directory "${GITHUB_WORKSPACE}"
51- apt-get update && apt-get install -y curl
52- - name : Submit dependency graph
53- uses :
vapor-community/[email protected] 54-
55- code-coverage :
56- if : ${{ !(github.event.pull_request.draft || false) }}
57- runs-on : ubuntu-latest
58- container : swift:jammy
59- services :
60- psql-a :
61- image : postgres:16
62- env :
63- POSTGRES_USER : test_username
64- POSTGRES_DB : test_database
65- POSTGRES_PASSWORD : test_password
66- POSTGRES_HOST_AUTH_METHOD : scram-sha-256
67- POSTGRES_INITDB_ARGS : --auth-host=scram-sha-256
68- steps :
69- - name : Check out code
70- uses : actions/checkout@v4
71- - name : Run unit tests for coverage data
72- run : swift test --enable-code-coverage
73- - name : Upload coverage data
74- 75- with :
76- codecov_token : ${{ secrets.CODECOV_TOKEN }}
77-
78- # gh-codeql:
79- # if: ${{ !(github.event.pull_request.draft || false) }}
80- # runs-on: ubuntu-latest
81- # container:
82- # image: swift:5.10-jammy
83- # permissions: { actions: write, contents: read, security-events: write }
84- # timeout-minutes: 60
85- # steps:
86- # - name: Check out code
87- # uses: actions/checkout@v4
88- # - name: Mark repo safe in non-fake global config
89- # run: |
90- # git config --global --add safe.directory "${GITHUB_WORKSPACE}"
91- # - name: Initialize CodeQL
92- # uses: github/codeql-action/init@v3
93- # with: { languages: swift }
94- # - name: Perform build
95- # run: swift build
96- # - name: Run CodeQL analyze
97- # uses: github/codeql-action/analyze@v3
98-
9939 linux-unit :
10040 if : ${{ !(github.event.pull_request.draft || false) }}
10141 strategy :
10242 fail-fast : false
10343 matrix :
10444 postgres-image :
105- - postgres:16
106- - postgres:14
107- - postgres:12
45+ - postgres:17
46+ - postgres:15
47+ - postgres:13
10848 swift-image :
109- - swift:5.8-jammy
11049 - swift:5.9-jammy
111- - swift:5.10-jammy
112- - swiftlang/ swift:nightly-main-jammy
50+ - swift:5.10-noble
51+ - swift:6.0-noble
11352 include :
114- - postgres-image : postgres:16
53+ - postgres-image : postgres:17
11554 postgres-auth : scram-sha-256
116- - postgres-image : postgres:14
55+ - postgres-image : postgres:15
11756 postgres-auth : md5
118- - postgres-image : postgres:12
57+ - postgres-image : postgres:13
11958 postgres-auth : trust
12059 runs-on : ubuntu-latest
12160 container : ${{ matrix.swift-image }}
@@ -132,15 +71,19 @@ jobs:
13271 - name : Check out package
13372 uses : actions/checkout@v4
13473 - name : Run local tests
135- run : swift test --sanitize=thread
74+ run : swift test --sanitize=thread --enable-code-coverage
75+ - name : Upload coverage data
76+ 77+ with :
78+ codecov_token : ${{ secrets.CODECOV_TOKEN || '' }}
13679
13780 linux-integration :
13881 if : ${{ !(github.event.pull_request.draft || false) }}
13982 runs-on : ubuntu-latest
140- container : swift:5.10-jammy
83+ container : swift:6.0-noble
14184 services :
14285 psql-a :
143- image : postgres:16
86+ image : postgres:17
14487 env :
14588 POSTGRES_USER : test_username
14689 POSTGRES_DB : test_database
@@ -173,10 +116,10 @@ jobs:
173116 fail-fast : false
174117 matrix :
175118 include :
176- - macos-version : macos-13
177- xcode-version : ' ~14.3'
178119 - macos-version : macos-14
179- xcode-version : latest
120+ xcode-version : latest-stable
121+ - macos-version : macos-15
122+ xcode-version : latest-stable
180123 runs-on : ${{ matrix.macos-version }}
181124 env :
182125 POSTGRES_HOSTNAME : 127.0.0.1
@@ -197,4 +140,20 @@ jobs:
197140 - name : Checkout code
198141 uses : actions/checkout@v4
199142 - name : Run local tests
200- run : swift test --sanitize=thread
143+ run : swift test --sanitize=thread --enable-code-coverage
144+ - name : Upload coverage data
145+ 146+ with :
147+ codecov_token : ${{ secrets.CODECOV_TOKEN || '' }}
148+
149+ musl :
150+ runs-on : ubuntu-latest
151+ container : swift:6.0-noble
152+ timeout-minutes : 30
153+ steps :
154+ - name : Check out code
155+ uses : actions/checkout@v4
156+ - name : Install SDK
157+ run : swift sdk install https://download.swift.org/swift-6.0.3-release/static-sdk/swift-6.0.3-RELEASE/swift-6.0.3-RELEASE_static-linux-0.0.1.artifactbundle.tar.gz --checksum 67f765e0030e661a7450f7e4877cfe008db4f57f177d5a08a6e26fd661cdd0bd
158+ - name : Build
159+ run : swift build --swift-sdk x86_64-swift-linux-musl
0 commit comments