Skip to content

CI: Run tests on all supported macOS runners #143

CI: Run tests on all supported macOS runners

CI: Run tests on all supported macOS runners #143

Workflow file for this run

name: Build and test
on:
push:
branches: main
pull_request:
jobs:
build-fmt-test:
strategy:
matrix:
runner:
- macos-11
- macos-12
- macos-13
- macos-14
runs-on: "${{matrix.runner}}"
steps:
- name: Check out sources
uses: actions/checkout@v4
- name: Check formatting
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