CI: Run tests on all supported macOS runners #146
Workflow file for this run
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: Build and test | |
on: | |
push: | |
branches: main | |
pull_request: | |
jobs: | |
build-fmt-test: | |
strategy: | |
matrix: | |
runner: | |
- macos-11 # X64 | |
- macos-12 # X64 | |
- macos-13 # X64 | |
- macos-14 # ARM64 | |
runs-on: "${{matrix.runner}}" | |
steps: | |
- name: Check out sources | |
uses: actions/checkout@v4 | |
- name: Check formatting | |
if: runner.name != 'macos-11' | |
run: swift package plugin --allow-writing-to-package-directory swiftformat ./examples --lint | |
- name: Build project and run tests | |
run: swift test | |
- name: Build example CLI | |
working-directory: ./examples/CLI | |
run: swift build |