try running on platforms too #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
check: | |
runs-on: macos-latest | |
# TODO Xcode versions (multiple?) | |
steps: | |
- uses: actions/checkout@v4 | |
- run: npm ci | |
- run: script/format/check | |
- run: script/lint/check | |
# https://forums.swift.org/t/warnings-as-errors-for-libraries-frameworks/58393/2 | |
- run: swift build -Xswiftc -warnings-as-errors | |
- run: swift test | |
check-on-platforms: | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
platform: [macOS, iOS, tvOS] | |
steps: | |
# TODO OS version, and ambiguity in platforms, and no match | |
- run: xcodebuild -scheme AblyChat -platform ${{ matrix.platform }} | |
- run: xcodebuild test -scheme AblyChat -platform ${{ matrix.platform }} |