Skip to content

Commit

Permalink
Donwgrade swift-snapshot-testing when using Beta 2 in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
liamnichols committed Jul 16, 2024
1 parent 1bf9d39 commit a119a65
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@ jobs:
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Downgrade swift-snapshot-testing
if: matrix.xcode == "16.0"
run: |
# Use 1.17.0 until macOS-14 runner is updated to Xcode 16 Beta 3
# https://github.com/pointfreeco/swift-snapshot-testing/pull/869
if [[ xcodebuild -version | 16A5171r ]] ; then
jq '(.pins[] | select(.identity == "swift-snapshot-testing") | .state.revision) = "f6c51fa7609b1057ca5420127440413c54971ff6" | (.pins[] | select(.identity == "swift-snapshot-testing") | .state.version) = "1.17.0"' Package.resolved | sed 's/": /" : /g' > Package.resolved.tmp && mv Package.resolved.tmp Package.resolved
fi
- name: Run Tests
run: xcodebuild clean test -scheme XCStringsTool-Package -destination platform=macOS
unit-test-swift-syntax:
Expand Down

0 comments on commit a119a65

Please sign in to comment.