@@ -12,13 +12,51 @@ concurrency:
12
12
cancel-in-progress : true
13
13
14
14
jobs :
15
- test-on-macos-12 :
16
- name : Test on macOS 12
17
- runs-on : macOS-12
15
+ test-on-macos-13 :
16
+ name : Test on macOS 13
17
+ runs-on : macOS-13
18
18
strategy :
19
19
fail-fast : false
20
20
matrix :
21
- xcode : ["13.2.1", "13.4.1", "14.1"]
21
+ xcode : ["14.3.1"]
22
+ steps :
23
+ - uses : actions/checkout@v2
24
+
25
+ - name : Cache dependencies
26
+ uses : actions/cache@v2
27
+ with :
28
+ path : |
29
+ .build/artifacts
30
+ .build/checkouts
31
+ .build/repositories
32
+ key : ${{ runner.os }}-dependencies-${{ matrix.xcode }}-${{ hashFiles('**/Package.resolved') }}
33
+ restore-keys : |
34
+ ${{ runner.os }}-dependencies-${{ matrix.xcode }}-${{ hashFiles('**/Package.resolved') }}
35
+ ${{ runner.os }}-dependencies-${{ matrix.xcode }}-
36
+
37
+ - name : Select Xcode
38
+ run : |
39
+ xcodebuild -version
40
+ ls -nt /Applications/ | grep "Xcode*"
41
+ sudo xcode-select -switch /Applications/Xcode_${{ matrix.xcode }}.app
42
+ xcodebuild -version
43
+
44
+ - name : Install danger-js
45
+ run : brew install danger/tap/danger-js
46
+
47
+ - run : swift test
48
+
49
+ - run : swift run danger-swift ci --verbose --failOnErrors
50
+ if : ${{ github.event_name == 'pull_request' }}
51
+ env :
52
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
53
+ test-on-macos-14 :
54
+ name : Test on macOS 14
55
+ runs-on : macOS-14
56
+ strategy :
57
+ fail-fast : false
58
+ matrix :
59
+ xcode : ["15.2", "15.4"]
22
60
steps :
23
61
- uses : actions/checkout@v2
24
62
@@ -53,11 +91,11 @@ jobs:
53
91
54
92
test-dependencies-resolver :
55
93
name : Test dependencies resolver
56
- runs-on : macOS-12
94
+ runs-on : macOS-14
57
95
strategy :
58
96
fail-fast : false
59
97
matrix :
60
- xcode : ["13.2.1 ", "13.4.1", "14.1 "]
98
+ xcode : ["15.2 ", "15.4 "]
61
99
steps :
62
100
- uses : actions/checkout@v2
63
101
83
121
- name : Install danger-js
84
122
run : brew install danger/tap/danger-js
85
123
86
- - run : make install
124
+ - run : make install PREFIX='/opt/homebrew'
87
125
88
126
- run : mkdir DangerTestWithDependencies && mv DangerfileWithDependencies.swift DangerTestWithDependencies/Dangerfile.swift
89
127
@@ -94,11 +132,11 @@ jobs:
94
132
95
133
test-on-linux :
96
134
name : Test on Linux
97
- runs-on : ubuntu-20 .04
135
+ runs-on : ubuntu-22 .04
98
136
strategy :
99
137
fail-fast : false
100
138
matrix :
101
- swift : ["5.5.3 ", "5.6.3 ", "5.7 "]
139
+ swift : ["5.8 ", "5.9 ", "5.10 "]
102
140
steps :
103
141
- uses : actions/checkout@v2
104
142
- uses : actions/setup-node@v2
@@ -131,13 +169,13 @@ jobs:
131
169
env :
132
170
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
133
171
134
- test-without-spm-on-macos-12 :
135
- name : Test without SPM on macOS 12
136
- runs-on : macOS-12
172
+ test-without-spm-on-macos-13 :
173
+ name : Test without SPM on macOS 13
174
+ runs-on : macOS-13
137
175
strategy :
138
176
fail-fast : false
139
177
matrix :
140
- xcode : ["13.2.1", "13.4.1", "14 .1"]
178
+ xcode : ["14.3 .1"]
141
179
steps :
142
180
- uses : actions/checkout@v2
143
181
@@ -170,13 +208,52 @@ jobs:
170
208
env :
171
209
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
172
210
211
+ test-without-spm-on-macos-14 :
212
+ name : Test without SPM on macOS 14
213
+ runs-on : macOS-14
214
+ strategy :
215
+ fail-fast : false
216
+ matrix :
217
+ xcode : ["15.2", "15.4"]
218
+ steps :
219
+ - uses : actions/checkout@v2
220
+
221
+ - name : Cache dependencies
222
+ uses : actions/cache@v2
223
+ with :
224
+ path : |
225
+ .build/artifacts
226
+ .build/checkouts
227
+ .build/repositories
228
+ key : ${{ runner.os }}-without-spm-package-${{ matrix.xcode }}-${{ hashFiles('**/Package.resolved') }}
229
+ restore-keys : |
230
+ ${{ runner.os }}-without-spm-package-${{ matrix.xcode }}-${{ hashFiles('**/Package.resolved') }}
231
+ ${{ runner.os }}-without-spm-package-${{ matrix.xcode }}-
232
+
233
+ - name : Select Xcode
234
+ run : |
235
+ xcodebuild -version
236
+ ls -nt /Applications/ | grep "Xcode*"
237
+ sudo xcode-select -switch /Applications/Xcode_${{ matrix.xcode }}.app
238
+ xcodebuild -version
239
+
240
+ - name : Install danger-js
241
+ run : brew install danger/tap/danger-js
242
+
243
+ - run : make install PREFIX='/opt/homebrew'
244
+
245
+ - run : danger-swift ci --verbose --failOnErrors
246
+ if : ${{ github.event_name == 'pull_request' }}
247
+ env :
248
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
249
+
173
250
test-without-spm-on-linux :
174
251
name : Test without SPM on Linux
175
- runs-on : ubuntu-20 .04
252
+ runs-on : ubuntu-22 .04
176
253
strategy :
177
254
fail-fast : false
178
255
matrix :
179
- swift : ["5.5.3 ", "5.6.3 ", "5.7 "]
256
+ swift : ["5.8 ", "5.9 ", "5.10 "]
180
257
steps :
181
258
- uses : actions/checkout@v2
182
259
- uses : actions/setup-node@v2
0 commit comments