-
-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop Swift 5.7 #620
Merged
+153
−49
Merged
Drop Swift 5.7 #620
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
e61c4fc
update Swift and Xcode versions to latest
417-72KI c7fe148
update Ubuntu to 22.04
417-72KI 4315835
update dependencies
417-72KI 5a6820a
add DEVELOPER_DIR to avoid error in `brew install danger-js`
417-72KI f6c7cf6
split matrix with whole jobs
417-72KI b8663dc
fix with new URL initializer
417-72KI 87caf5b
avoid `mkdir: /usr/local/lib: Permission denied` in macOS-14 runner
417-72KI 4764165
update requirements
417-72KI 8260ca0
update CHANGELOG
417-72KI 172603d
Merge branch 'master' into drop-swift-5.7
f-meloni File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,13 +12,51 @@ concurrency: | |
cancel-in-progress: true | ||
|
||
jobs: | ||
test-on-macos-12: | ||
name: Test on macOS 12 | ||
runs-on: macOS-12 | ||
test-on-macos-13: | ||
name: Test on macOS 13 | ||
runs-on: macOS-13 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
xcode: ["13.2.1", "13.4.1", "14.1"] | ||
xcode: ["14.3.1"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
.build/artifacts | ||
.build/checkouts | ||
.build/repositories | ||
key: ${{ runner.os }}-dependencies-${{ matrix.xcode }}-${{ hashFiles('**/Package.resolved') }} | ||
restore-keys: | | ||
${{ runner.os }}-dependencies-${{ matrix.xcode }}-${{ hashFiles('**/Package.resolved') }} | ||
${{ runner.os }}-dependencies-${{ matrix.xcode }}- | ||
|
||
- name: Select Xcode | ||
run: | | ||
xcodebuild -version | ||
ls -nt /Applications/ | grep "Xcode*" | ||
sudo xcode-select -switch /Applications/Xcode_${{ matrix.xcode }}.app | ||
xcodebuild -version | ||
|
||
- name: Install danger-js | ||
run: brew install danger/tap/danger-js | ||
|
||
- run: swift test | ||
|
||
- run: swift run danger-swift ci --verbose --failOnErrors | ||
if: ${{ github.event_name == 'pull_request' }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
test-on-macos-14: | ||
name: Test on macOS 14 | ||
runs-on: macOS-14 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
xcode: ["15.2", "15.4"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
|
@@ -53,11 +91,11 @@ jobs: | |
|
||
test-dependencies-resolver: | ||
name: Test dependencies resolver | ||
runs-on: macOS-12 | ||
runs-on: macOS-14 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
xcode: ["13.2.1", "13.4.1", "14.1"] | ||
xcode: ["15.2", "15.4"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
|
@@ -83,7 +121,7 @@ jobs: | |
- name: Install danger-js | ||
run: brew install danger/tap/danger-js | ||
|
||
- run: make install | ||
- run: make install PREFIX='/opt/homebrew' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In macOS-14 runner, mkdir: /usr/local/lib: Permission denied |
||
|
||
- run: mkdir DangerTestWithDependencies && mv DangerfileWithDependencies.swift DangerTestWithDependencies/Dangerfile.swift | ||
|
||
|
@@ -94,11 +132,11 @@ jobs: | |
|
||
test-on-linux: | ||
name: Test on Linux | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
swift: ["5.5.3", "5.6.3", "5.7"] | ||
swift: ["5.8", "5.9", "5.10"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
|
@@ -131,13 +169,13 @@ jobs: | |
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
test-without-spm-on-macos-12: | ||
name: Test without SPM on macOS 12 | ||
runs-on: macOS-12 | ||
test-without-spm-on-macos-13: | ||
name: Test without SPM on macOS 13 | ||
runs-on: macOS-13 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
xcode: ["13.2.1", "13.4.1", "14.1"] | ||
xcode: ["14.3.1"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
|
@@ -170,13 +208,52 @@ jobs: | |
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
test-without-spm-on-macos-14: | ||
name: Test without SPM on macOS 14 | ||
runs-on: macOS-14 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
xcode: ["15.2", "15.4"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
.build/artifacts | ||
.build/checkouts | ||
.build/repositories | ||
key: ${{ runner.os }}-without-spm-package-${{ matrix.xcode }}-${{ hashFiles('**/Package.resolved') }} | ||
restore-keys: | | ||
${{ runner.os }}-without-spm-package-${{ matrix.xcode }}-${{ hashFiles('**/Package.resolved') }} | ||
${{ runner.os }}-without-spm-package-${{ matrix.xcode }}- | ||
|
||
- name: Select Xcode | ||
run: | | ||
xcodebuild -version | ||
ls -nt /Applications/ | grep "Xcode*" | ||
sudo xcode-select -switch /Applications/Xcode_${{ matrix.xcode }}.app | ||
xcodebuild -version | ||
|
||
- name: Install danger-js | ||
run: brew install danger/tap/danger-js | ||
|
||
- run: make install PREFIX='/opt/homebrew' | ||
|
||
- run: danger-swift ci --verbose --failOnErrors | ||
if: ${{ github.event_name == 'pull_request' }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
test-without-spm-on-linux: | ||
name: Test without SPM on Linux | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
swift: ["5.5.3", "5.6.3", "5.7"] | ||
swift: ["5.8", "5.9", "5.10"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
5.5 | ||
5.10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Xcode 14.3 with macOS-14 runner fails on
brew install danger-js
Error: Your Xcode (14.3.1 => /Applications/Xcode_14.3.1.app/Contents/Developer) at /Applications/Xcode.app is too outdated. Please update to Xcode 15.4 (or delete it). Xcode can be updated from the App Store.