improve job name #22
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: | |
name: Check with SPM (Xcode ${{ matrix.tooling.xcode-version }}, Swift ${{ matrix.tooling.swift-version }}) | |
runs-on: macos-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
tooling: | |
- xcode-version: 15.3 | |
swift-version: 5 | |
- xcode-version: 16-beta | |
swift-version: 6 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: ${{ matrix.tooling.xcode-version }} | |
- 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 -Xswiftc -swift-version -Xswiftc ${{ matrix.tooling.swift-version }} | |
- run: swift test -Xswiftc -warnings-as-errors -Xswiftc -swift-version -Xswiftc ${{ matrix.tooling.swift-version }} | |
check-on-platforms: | |
name: Check with xcodebuild (${{matrix.platform}}, Xcode ${{ matrix.tooling.xcode-version }}, Swift ${{ matrix.tooling.swift-version }}) | |
runs-on: macos-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
tooling: | |
- xcode-version: 15.3 | |
swift-version: 5 | |
- xcode-version: 16-beta | |
swift-version: 6 | |
platform: [macOS, iOS, tvOS] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: ${{ matrix.tooling.xcode-version }} | |
# TODO OS version, and ambiguity in platforms, and no match | |
- run: xcodebuild -scheme AblyChat -destination "platform=${{ matrix.platform }}" | |
- run: xcodebuild test -scheme AblyChat -destination "platform=${{ matrix.platform }}" |