@@ -12,13 +12,19 @@ concurrency:
1212 cancel-in-progress : true
1313
1414jobs :
15- test-on-macos-13 :
16- name : Test on macOS 13
17- runs-on : macOS-13
15+ test-on-macos :
16+ name : Test on macOS
1817 strategy :
1918 fail-fast : false
2019 matrix :
21- xcode : ["14.3.1"]
20+ include :
21+ - runner : " macos-13"
22+ xcode : " 14.3.1"
23+ - runner : " macos-14"
24+ xcode : " 15.4"
25+ - runner : " macos-15"
26+ xcode : " 16.1"
27+ runs-on : ${{ matrix.runner }}
2228 steps :
2329 - uses : actions/checkout@v4
2430
@@ -50,52 +56,17 @@ jobs:
5056 if : ${{ github.event_name == 'pull_request' }}
5157 env :
5258 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.4", "16.0"]
60- steps :
61- - uses : actions/checkout@v4
62-
63- - name : Cache dependencies
64- uses : actions/cache@v2
65- with :
66- path : |
67- .build/artifacts
68- .build/checkouts
69- .build/repositories
70- key : ${{ runner.os }}-dependencies-${{ matrix.xcode }}-${{ hashFiles('**/Package.resolved') }}
71- restore-keys : |
72- ${{ runner.os }}-dependencies-${{ matrix.xcode }}-${{ hashFiles('**/Package.resolved') }}
73- ${{ runner.os }}-dependencies-${{ matrix.xcode }}-
74-
75- - name : Select Xcode
76- run : |
77- xcodebuild -version
78- ls -nt /Applications/ | grep "Xcode*"
79- sudo xcode-select -switch /Applications/Xcode_${{ matrix.xcode }}.app
80- xcodebuild -version
81-
82- - name : Install danger-js
83- run : brew install danger/tap/danger-js
84-
85- - run : swift test
86-
87- - run : swift run danger-swift ci --verbose --failOnErrors
88- if : ${{ github.event_name == 'pull_request' }}
89- env :
90- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
91-
9259 test-dependencies-resolver :
9360 name : Test dependencies resolver
94- runs-on : macOS-14
9561 strategy :
9662 fail-fast : false
9763 matrix :
98- xcode : ["15.4", "16.0"]
64+ include :
65+ - runner : " macos-14"
66+ xcode : " 15.4"
67+ - runner : " macos-15"
68+ xcode : " 16.1"
69+ runs-on : ${{ matrix.runner }}
9970 steps :
10071 - uses : actions/checkout@v4
10172
@@ -169,13 +140,19 @@ jobs:
169140 env :
170141 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
171142
172- test-without-spm-on-macos-13 :
173- name : Test without SPM on macOS 13
174- runs-on : macOS-13
143+ test-without-spm-on-macos :
144+ name : Test without SPM on macOS
175145 strategy :
176146 fail-fast : false
177147 matrix :
178- xcode : ["14.3.1"]
148+ include :
149+ - runner : " macos-13"
150+ xcode : " 14.3.1"
151+ - runner : " macos-14"
152+ xcode : " 15.4"
153+ - runner : " macos-15"
154+ xcode : " 16.1"
155+ runs-on : ${{ matrix.runner }}
179156 steps :
180157 - uses : actions/checkout@v4
181158
@@ -202,47 +179,9 @@ jobs:
202179 run : brew install danger/tap/danger-js
203180
204181 - run : make install
205-
206- - run : rm -rf .build && rm -rf Package.swift
207-
208- - run : danger-swift ci --verbose --failOnErrors
209- if : ${{ github.event_name == 'pull_request' }}
210- env :
211- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
212-
213- test-without-spm-on-macos-14 :
214- name : Test without SPM on macOS 14
215- runs-on : macOS-14
216- strategy :
217- fail-fast : false
218- matrix :
219- xcode : ["15.4", "16.0"]
220- steps :
221- - uses : actions/checkout@v4
222-
223- - name : Cache dependencies
224- uses : actions/cache@v2
225- with :
226- path : |
227- .build/artifacts
228- .build/checkouts
229- .build/repositories
230- key : ${{ runner.os }}-without-spm-package-${{ matrix.xcode }}-${{ hashFiles('**/Package.resolved') }}
231- restore-keys : |
232- ${{ runner.os }}-without-spm-package-${{ matrix.xcode }}-${{ hashFiles('**/Package.resolved') }}
233- ${{ runner.os }}-without-spm-package-${{ matrix.xcode }}-
234-
235- - name : Select Xcode
236- run : |
237- xcodebuild -version
238- ls -nt /Applications/ | grep "Xcode*"
239- sudo xcode-select -switch /Applications/Xcode_${{ matrix.xcode }}.app
240- xcodebuild -version
241-
242- - name : Install danger-js
243- run : brew install danger/tap/danger-js
244-
182+ if : ${{ runner.os == 'macos-13' }}
245183 - run : make install PREFIX='/opt/homebrew'
184+ if : ${{ runner.os != 'macos-13' }}
246185
247186 - run : rm -rf .build && rm -rf Package.swift
248187
0 commit comments