Skip to content

Commit

Permalink
Updated GitHub CI
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed Nov 17, 2022
1 parent 56b004d commit fda397b
Showing 1 changed file with 3 additions and 35 deletions.
38 changes: 3 additions & 35 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ jobs:
name: Build
strategy:
matrix:
swift: [5.5.3, 5.6.3, 5.7.1]
os: [ubuntu-latest, macos-latest]
swift: [5.6.3, 5.7.1]
os: [macos-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Swift
Expand All @@ -22,37 +22,5 @@ jobs:
run: swift build -c debug
- name: Build (Release)
run: swift build -c release

test-linux:
name: Test Linux
strategy:
matrix:
swift: [5.5.3, 5.6.3, 5.7.1]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Swift
uses: slashmo/[email protected]
with:
version: ${{ matrix.swift }}
- name: Checkout
uses: actions/checkout@v2
- name: Swift Version
run: swift --version
- name: Test (Debug)
run: swift test --configuration debug
- name: Test (Release)
run: swift test --configuration release -Xswiftc -enable-testing

test-macOS:
name: Test macOS
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Swift Version
run: swift --version
- name: Test (Debug)
run: swift test --configuration debug --enable-code-coverage
- name: Test (Release)
run: swift test --configuration release -Xswiftc -enable-testing --enable-code-coverage
run: swift test -c debug

0 comments on commit fda397b

Please sign in to comment.