22
22
MYSQL_HOSTNAME_B : ' mysql-b'
23
23
24
24
jobs :
25
- dependency-graph :
26
- if : ${{ github.event_name == 'push' }}
27
- runs-on : ubuntu-latest
28
- container : swift:jammy
29
- permissions :
30
- contents : write
31
- steps :
32
- - name : Check out code
33
- uses : actions/checkout@v4
34
- - name : Fix Git configuration
35
- run : |
36
- git config --global --add safe.directory "${GITHUB_WORKSPACE}"
37
- apt-get update && apt-get install -y curl
38
- - name : Submit dependency graph
39
- uses :
vapor-community/[email protected]
40
- with :
41
- path : ${{ github.workspace }}
42
-
43
25
api-breakage :
44
26
if : ${{ !(github.event.pull_request.draft || false) }}
45
27
runs-on : ubuntu-latest
@@ -53,33 +35,26 @@ jobs:
53
35
git config --global --add safe.directory "${GITHUB_WORKSPACE}"
54
36
swift package diagnose-api-breaking-changes origin/main
55
37
56
- gh-codeql :
57
- if : ${{ !(github.event.pull_request.draft || false) }}
58
- runs-on : ubuntu-latest
59
- container :
60
- image : swift:5.9-jammy
61
- permissions : { actions: write, contents: read, security-events: write }
62
- timeout-minutes : 60
63
- steps :
64
- - name : Check out code
65
- uses : actions/checkout@v4
66
- - name : Mark repo safe in non-fake global config
67
- run : |
68
- git config --global --add safe.directory "${GITHUB_WORKSPACE}"
69
- - name : Check Swift compatibility
70
- id : swift-check
71
- uses : vapor/ci/.github/actions/check-compatible-swift@main
72
- - name : Initialize CodeQL
73
- if : ${{ steps.swift-check.outputs.swift-compatible == 'true' }}
74
- uses : github/codeql-action/init@v3
75
- with : { languages: swift }
76
- - name : Perform build
77
- if : ${{ steps.swift-check.outputs.swift-compatible == 'true' }}
78
- run : |
79
- swift build
80
- - name : Run CodeQL analyze
81
- if : ${{ steps.swift-check.outputs.swift-compatible == 'true' }}
82
- uses : github/codeql-action/analyze@v3
38
+ # gh-codeql:
39
+ # if: ${{ !(github.event.pull_request.draft || false) }}
40
+ # runs-on: ubuntu-latest
41
+ # permissions: { actions: write, contents: read, security-events: write }
42
+ # timeout-minutes: 30
43
+ # steps:
44
+ # - name: Install latest Swift toolchain
45
+
46
+ # with: { toolchain: latest }
47
+ # - name: Check out code
48
+ # uses: actions/checkout@v4
49
+ # - name: Fix Git configuration
50
+ # run: 'git config --global --add safe.directory "${GITHUB_WORKSPACE}"'
51
+ # - name: Initialize CodeQL
52
+ # uses: github/codeql-action/init@v3
53
+ # with: { languages: swift }
54
+ # - name: Perform build
55
+ # run: 'swift build ${PACKAGE_ROOT} ${EXTRA_FLAGS}'
56
+ # - name: Run CodeQL analyze
57
+ # uses: github/codeql-action/analyze@v3
83
58
84
59
linux-all :
85
60
if : ${{ !(github.event.pull_request.draft || false) }}
@@ -94,10 +69,10 @@ jobs:
94
69
- percona:5.7
95
70
- percona:8
96
71
swiftver :
97
- - swift:5.7-jammy
98
72
- swift:5.8-jammy
99
73
- swift:5.9-jammy
100
- - swiftlang/swift:nightly-5.10-jammy
74
+ - swift:5.10-jammy
75
+ - swiftlang/swift:nightly-6.0-jammy
101
76
- swiftlang/swift:nightly-main-jammy
102
77
runs-on : ubuntu-latest
103
78
container : ${{ matrix.swiftver }}
115
90
- name : Run unit tests
116
91
run : swift test --package-path mysql-nio --enable-code-coverage --sanitize=thread
117
92
- name : Upload code coverage
118
- uses : vapor/swift-codecov-action@v0.2
93
+ uses : vapor/swift-codecov-action@v0.3
119
94
with :
95
+ codecov_token : ${{ secrets.CODECOV_TOKEN }}
120
96
package_path : ' mysql-nio'
121
97
- name : Check out mysql-kit dependent
122
98
uses : actions/checkout@v4
@@ -139,18 +115,19 @@ jobs:
139
115
fail-fast : false
140
116
matrix :
141
117
dbimage : [mysql, mariadb, percona-server]
142
- xcode : ['~14.3', 'latest']
143
- macos : ['macos-13']
118
+ macos-version : ['macos-13', 'macos-14']
144
119
include :
145
120
- { username: root }
146
121
- { dbimage: mariadb, username: runner }
147
- runs-on : ${{ matrix.macos }}
122
+ - { macos-version: 'macos-13', xcode-version: '~15.2' }
123
+ - { macos-version: 'macos-14', xcode-version: 'latest' }
124
+ runs-on : ${{ matrix.macos-version }}
148
125
env : { MYSQL_HOSTNAME: '127.0.0.1' }
149
126
steps :
150
127
- name : Select latest available Xcode
151
128
uses : maxim-lobanov/setup-xcode@v1
152
129
with :
153
- xcode-version : ${{ matrix.xcode }}
130
+ xcode-version : ${{ matrix.xcode-version }}
154
131
- name : Install MySQL, setup DB and auth, and wait for server start
155
132
env :
156
133
FORMULA : ${{ matrix.dbimage }}
@@ -171,4 +148,6 @@ jobs:
171
148
- name : Run all tests
172
149
run : swift test --sanitize=thread --enable-code-coverage
173
150
- name : Upload code coverage
174
-
151
+
152
+ with :
153
+ codecov_token : ${{ secrets.CODECOV_TOKEN }}
0 commit comments