Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmassicotte committed Apr 28, 2024
1 parent a3c81b1 commit 9571b81
Showing 1 changed file with 35 additions and 7 deletions.
42 changes: 35 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,46 @@ on:
push:
branches:
- main
paths-ignore:
- 'README.md'
- 'CODE_OF_CONDUCT.md'
- '.editorconfig'
- '.spi.yml'
pull_request:
branches:
- '**'
- main

jobs:
test:
name: Test on destination ${{ matrix.destination }}
runs-on: macOS-latest
name: Test
runs-on: macos-14
env:
DEVELOPER_DIR: /Applications/Xcode_15.3.app/Contents/Developer
strategy:
matrix:
destination: ["platform=macOS", "platform=iOS Simulator,name=iPhone 8"]
destination:
- "platform=macOS"
- "platform=iOS Simulator,name=iPhone 15"
- "platform=tvOS Simulator,name=Apple TV"
- "platform=visionOS Simulator,name=Apple Vision Pro"
- "platform=watchOS Simulator,name=Apple Watch Series 6 (40mm)"
- "platform=macOS,variant=Mac Catalyst"

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Test platform ${{ matrix.destination }}
run: set -o pipefail && xcodebuild -scheme Flexer -destination "${{ matrix.destination }}" test | xcbeautify

linux_test:
name: Test Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: xcodebuild test ${{ matrix.destination }}
run: set -o pipefail && xcodebuild test -scheme Flexer -destination "${{ matrix.destination }}" | xcpretty
- name: Checkout
uses: actions/checkout@v4
- name: Install swiftly
run: curl -L https://swift-server.github.io/swiftly/swiftly-install.sh | bash -s -- -y
- name: Install the latest Swift toolchain
run: swiftly install latest
- name: Test
run: swift test

0 comments on commit 9571b81

Please sign in to comment.