Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
1024jp committed Jun 24, 2024
1 parent d33b9d5 commit 245b6ee
Showing 1 changed file with 18 additions and 27 deletions.
45 changes: 18 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,22 @@ name: CI
on: [push, pull_request]

jobs:
macOS:
name: Test on macOS
runs-on: macOS-14
env:
DEVELOPER_DIR: /Applications/Xcode_16.0.app
build:
name: Swift ${{ matrix.swift }} on ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
swift: ["5.10", "6.0"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Show environments
run: |
swift --version
xcodebuild -version
- name: Lint Swift
run: |
if [[ ! -f "/usr/local/bin/swiftlint" ]]; then
brew install swiftlint
fi
swiftlint
- name: Build & test SwiftPM
run: |
swift build
swift test --enable-swift-testing
linux:
runs-on: ubuntu-latest
container: swift:latest
steps:
- uses: actions/checkout@v4
- name: Unit Test
run: swift test --enable-swift-testing
- uses: swift-actions/setup-swift@v2
with:
swift-version: ${{ matrix.swift }}
- uses: actions/checkout@v4
- name: Show environments
run: |
swift --version
- name: Build
run: swift build
- name: Run tests
run: swift test --enable-swift-testing

0 comments on commit 245b6ee

Please sign in to comment.