Fix assertSnapshot for Swift Testing tests. (#916) #794
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
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- "*" | |
jobs: | |
macos: | |
strategy: | |
matrix: | |
xcode: | |
- 15.4 | |
- '16.0' | |
name: macOS | |
runs-on: macos-14 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Select Xcode ${{ matrix.xcode }} | |
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app | |
- name: Run tests | |
run: make test-swift | |
ubuntu: | |
strategy: | |
matrix: | |
swift: | |
- "5.7" | |
name: Ubuntu (Swift ${{ matrix.swift }}) | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: swift-actions/setup-swift@v1 | |
with: | |
swift-version: ${{ matrix.swift }} | |
- uses: actions/checkout@v3 | |
- run: swift test | |
windows: | |
strategy: | |
matrix: | |
swift: | |
- "5.9.1" | |
name: Windows (Swift ${{ matrix.swift }}) | |
runs-on: windows-latest | |
steps: | |
- uses: compnerd/gha-setup-swift@main | |
with: | |
branch: swift-${{ matrix.swift }}-release | |
tag: ${{ matrix.swift }}-RELEASE | |
- name: Set git to use LF | |
run: | | |
git config --global core.autocrlf false | |
git config --global core.eol lf | |
- uses: actions/checkout@v4 | |
- run: swift build | |
- run: swift test |