Skip to content

Commit

Permalink
Increase swift version coverage for unit tests
Browse files Browse the repository at this point in the history
- For Xcode tests, this runs both 13.4.1 (w/ Swift 5.6) and
  14.1 (w/ Swift 5.7)
- For SwiftPM on Ubuntu, tests are running against 5.2, 5.6, and 5.7
- Switched to using the setup-swift action instead of swift version
  manager
  • Loading branch information
braker1nine committed Nov 9, 2022
1 parent eb98880 commit b7d9131
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ jobs:
fail-fast: false
matrix:
destination: [macOS, macCatalyst, iOS, tvOS, watchOS]
xcode: ["14.1", "13.4.1"]
env:
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -64,12 +67,16 @@ jobs:
ONLY_ACTIVE_ARCH=YES
swiftpm-linux:
strategy:
matrix:
swift: ["5.2", "5.6", "5.7"]

name: SwiftPM Linux
runs-on: ubuntu-18.04
steps:
- name: Install Swift
run: |
eval "$(curl -sL https://swiftenv.fuller.li/install.sh)"
- uses: swift-actions/setup-swift@v1
with:
swift-version: ${{ matrix.swift }}
- name: Checkout
uses: actions/checkout@v2
- name: Recover cached dependencies
Expand Down

0 comments on commit b7d9131

Please sign in to comment.