Skip to content

CI

CI #158

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- "**"
schedule:
- cron: '3 3 * * 2' # 3:03 AM, every Tuesday
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
macOS:
name: ${{ matrix.platform }} (Swift ${{ matrix.swift }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
platform:
- iOS
- macOS
- tvOS
- watchOS
swift:
- 5.5
- 5.6
- 5.7
- 5.8
include:
- swift: 5.5
os: macos-12
- swift: 5.6
os: macos-12
- swift: 5.7
os: macos-13
- swift: 5.8
os: macos-13
- action: test
- platform: tvOS
action: build
- platform: watchOS
action: build
steps:
- uses: actions/checkout@v3
- uses: mxcl/xcodebuild@v2
with:
action: ${{ matrix.action }}
platform: ${{ matrix.platform }}
swift: ~${{ matrix.swift }}
scheme: PreciseDecimal
linux:
name: Linux (Swift ${{ matrix.swift }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
swift:
- 5.5
- 5.6
- 5.7
- 5.8
container:
image: swift:${{ matrix.swift }}
steps:
- uses: actions/checkout@v3
- run: swift test --parallel -Xswiftc -warnings-as-errors