docs: update README with CI badge #8
This file contains hidden or 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: CI | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| env: | |
| CLICOLOR: 1 | |
| jobs: | |
| test-macos: | |
| name: Test on macOS 15 | |
| runs-on: macOS-15 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Xcode Select Version | |
| uses: mobiledevops/xcode-select-version-action@v1 | |
| with: | |
| xcode-select-version: 26.1 | |
| - name: Test | |
| run: set -o pipefail && swift test | xcbeautify --renderer github-actions | |
| test-ubuntu: | |
| name: Test on Ubuntu 24.04 | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Test | |
| run: set -o pipefail && swift test | |
| spelling: | |
| name: Spell Check with Typos | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Actions Repository | |
| uses: actions/checkout@v4 | |
| - name: Spell Check Repo | |
| uses: crate-ci/typos@v1.32.0 | |
| swift-format: | |
| name: swift-format | |
| runs-on: macOS-15 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Xcode Select Version | |
| uses: mobiledevops/xcode-select-version-action@v1 | |
| with: | |
| xcode-select-version: 26.1 | |
| - name: Format | |
| run: swift format --in-place --recursive --parallel ./Sources ./Tests ./Package.swift | |
| - name: Check for formatting changes | |
| run: git diff --exit-code |