-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2e87190
commit b2d0102
Showing
1 changed file
with
24 additions
and
12 deletions.
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Swift | ||
name: Swift CI | ||
|
||
on: | ||
push: | ||
|
@@ -10,20 +10,32 @@ on: | |
|
||
jobs: | ||
build: | ||
name: Swift ${{ matrix.swift }} on ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
swift: ["6", "5"] | ||
include: | ||
- os: ubuntu-latest | ||
swift: "5" | ||
- os: macos-latest | ||
swift: "5" | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: swift-actions/[email protected] | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Swift | ||
if: ${{ matrix.os == 'macos-latest' }} | ||
run: sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer | ||
|
||
- name: Install Swift | ||
uses: swift-actions/[email protected] | ||
with: | ||
swift-version: ${{ matrix.swift }} | ||
- name: Get swift version | ||
run: swift --version # Swift 5.10.1 | ||
- uses: actions/checkout@v4 | ||
- name: Build | ||
run: swift build --package-path SwiftErrorArchiver/ | ||
- name: Run tests | ||
run: swift test --package-path SwiftErrorArchiver/ | ||
|
||
- name: Check Swift version | ||
run: swift --version | ||
|
||
- name: Build Project | ||
run: swift build --package-path SwiftErrorArchiver/ | ||
|
||
- name: Run Tests | ||
run: swift test --package-path SwiftErrorArchiver/ |