@@ -12,13 +12,51 @@ concurrency:
12
12
cancel-in-progress : true
13
13
14
14
jobs :
15
+ test-on-macos-13 :
16
+ name : Test on macOS 13
17
+ runs-on : macOS-13
18
+ strategy :
19
+ fail-fast : false
20
+ matrix :
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 }}
15
53
test-on-macos-14 :
16
54
name : Test on macOS 14
17
55
runs-on : macOS-14
18
56
strategy :
19
57
fail-fast : false
20
58
matrix :
21
- xcode : ["14.3.1", " 15.2", "15.4"]
59
+ xcode : ["15.2", "15.4"]
22
60
steps :
23
61
- uses : actions/checkout@v2
24
62
43
81
44
82
- name : Install danger-js
45
83
run : brew install danger/tap/danger-js
46
- env :
47
- DEVELOPER_DIR : /Applications/Xcode_15.4.app/Contents/Developer # Avoid Homebrew installation error
48
84
49
85
- run : swift test
50
86
59
95
strategy :
60
96
fail-fast : false
61
97
matrix :
62
- xcode : ["14.3.1", " 15.2", "15.4"]
98
+ xcode : ["15.2", "15.4"]
63
99
steps :
64
100
- uses : actions/checkout@v2
65
101
84
120
85
121
- name : Install danger-js
86
122
run : brew install danger/tap/danger-js
87
- env :
88
- DEVELOPER_DIR : /Applications/Xcode_15.4.app/Contents/Developer # Avoid Homebrew installation error
89
123
90
124
- run : make install
91
125
@@ -135,13 +169,52 @@ jobs:
135
169
env :
136
170
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
137
171
172
+ test-without-spm-on-macos-13 :
173
+ name : Test without SPM on macOS 13
174
+ runs-on : macOS-13
175
+ strategy :
176
+ fail-fast : false
177
+ matrix :
178
+ xcode : ["14.3.1"]
179
+ steps :
180
+ - uses : actions/checkout@v2
181
+
182
+ - name : Cache dependencies
183
+ uses : actions/cache@v2
184
+ with :
185
+ path : |
186
+ .build/artifacts
187
+ .build/checkouts
188
+ .build/repositories
189
+ key : ${{ runner.os }}-without-spm-package-${{ matrix.xcode }}-${{ hashFiles('**/Package.resolved') }}
190
+ restore-keys : |
191
+ ${{ runner.os }}-without-spm-package-${{ matrix.xcode }}-${{ hashFiles('**/Package.resolved') }}
192
+ ${{ runner.os }}-without-spm-package-${{ matrix.xcode }}-
193
+
194
+ - name : Select Xcode
195
+ run : |
196
+ xcodebuild -version
197
+ ls -nt /Applications/ | grep "Xcode*"
198
+ sudo xcode-select -switch /Applications/Xcode_${{ matrix.xcode }}.app
199
+ xcodebuild -version
200
+
201
+ - name : Install danger-js
202
+ run : brew install danger/tap/danger-js
203
+
204
+ - run : sudo make install
205
+
206
+ - run : danger-swift ci --verbose --failOnErrors
207
+ if : ${{ github.event_name == 'pull_request' }}
208
+ env :
209
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
210
+
138
211
test-without-spm-on-macos-14 :
139
212
name : Test without SPM on macOS 14
140
213
runs-on : macOS-14
141
214
strategy :
142
215
fail-fast : false
143
216
matrix :
144
- xcode : ["14.3.1", " 15.2", "15.4"]
217
+ xcode : ["15.2", "15.4"]
145
218
steps :
146
219
- uses : actions/checkout@v2
147
220
@@ -166,8 +239,6 @@ jobs:
166
239
167
240
- name : Install danger-js
168
241
run : brew install danger/tap/danger-js
169
- env :
170
- DEVELOPER_DIR : /Applications/Xcode_15.4.app/Contents/Developer # Avoid Homebrew installation error
171
242
172
243
- run : make install
173
244
0 commit comments