Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 25 additions & 5 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,40 @@ on: [pull_request]

jobs:
Lint:
runs-on: macos-latest
runs-on: macos-15
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: SwiftFormat
run: swiftformat --lint --strict . --reporter github-actions-log
test-ubuntu-latest:
name: Test Swift ${{ matrix.swift }} Ubuntu Latest
strategy:
matrix:
swift: ["6.0", "6.0.1", "6.0.2"]
swift: ["6.1.2", "6.2"]
runs-on: ubuntu-latest
container: swift:${{ matrix.swift }}
steps:
- uses: actions/checkout@v4
- name: Run Tests
run: swift test -Xswiftc -warnings-as-errors -Xcc -Werror

run: swift test -Xswiftc -warnings-as-errors
test-macos-15:
name: Test Swift ${{ matrix.swift }} macOS
strategy:
matrix:
swift: ["6.1.2", "6.2"]
runs-on: macos-15
steps:
- uses: actions/checkout@v4
- name: Install Swiftly
run: |
curl -O https://download.swift.org/swiftly/darwin/swiftly.pkg && \
installer -pkg swiftly.pkg -target CurrentUserHomeDirectory && \
~/.swiftly/bin/swiftly init --quiet-shell-followup && \
. ~/.swiftly/env.sh && \
hash -r
- name: Install Swift ${{ matrix.swift }}
run: ~/.swiftly/bin/swiftly install --use ${{ matrix.swift }}
- name: Run Tests
run: |
export PATH=${HOME}/.swiftly/bin:${PATH}
swift test -Xswiftc -warnings-as-errors