Run CI with Swift 6.1 and 6.2 #61
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: Swift | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "*" ] | |
| jobs: | |
| mac: | |
| name: Swift on macOS | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build | |
| run: swift build -v | |
| - name: Run tests | |
| run: swift test -v | |
| linux: | |
| name: Swift ${{ matrix.swift }} on Linux | |
| runs-on: ubuntu-latest | |
| container: swiftlang/swift:nightly-${{ matrix.swift }}-jammy | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| swift: ["6.1", "6.2"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build | |
| run: swift build -v | |
| - name: Run tests | |
| run: swift test -v | |
| format: | |
| name: Format | |
| runs-on: ubuntu-latest | |
| container: swift:6.1 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Format | |
| run: swift format lint **/*.swift -r -s |