Skip to content

Run swift linux tests in docker container #181

Run swift linux tests in docker container

Run swift linux tests in docker container #181

Workflow file for this run

name: CI
on:
push:
branches:
- main
paths-ignore:
- "README.md"
- "CODE_OF_CONDUCT.md"
- ".editorconfig"
- ".spi.yml"
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
test:
name: Test
timeout-minutes: 30
runs-on: macos-26
env:
DEVELOPER_DIR: /Applications/Xcode_26.0.app
strategy:
matrix:
destination:
- "platform=macOS"
- "platform=macOS,variant=Mac Catalyst"
- "platform=iOS Simulator,name=iPhone 16e"
- "platform=tvOS Simulator,name=Apple TV"
- "platform=watchOS Simulator,name=Apple Watch Series 11 (42mm)"
- "platform=visionOS Simulator,name=Apple Vision Pro"
steps:
- uses: actions/checkout@v4
- name: Test platform ${{ matrix.destination }}
run: set -o pipefail && xcodebuild -scheme OAuthenticator -destination "${{ matrix.destination }}" test | xcbeautify
linux_test:
name: Test Linux
runs-on: ubuntu-24.04
container:
image: swift:${{matrix.swift-version}}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
swift-version:
- "6.1"
- "6.2"
- "latest"
steps:
- name: Checkout
uses: actions/checkout@v4
- run: swift --version
- name: Test
run: swift test