Updates to the tests to target the commonly used versions #9
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: Pull Request Build and Test | ||
|
Check failure on line 1 in .github/workflows/pull-request.yml
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| pull_request: | ||
| branches: [main] | ||
| jobs: | ||
| build: | ||
| name: Swift ${{ matrix.swift }} on ${{ matrix.os }} | ||
| strategy: | ||
| matrix: | ||
| os: [ubuntu-latest, macos-latest] | ||
| swift: ["5.10", "6.0"] | ||
| runs-on: ${{ matrix.os }} | ||
| steps: | ||
| - uses: swift-actions/setup-swift | ||
| with: | ||
| swift-version: ${{ matrix.swift }} | ||
| - uses: actions/checkout@v5 | ||
| - name: Build | ||
| run: swift build | ||
| - name: Run tests | ||
| run: swift test | ||
| swift-lint: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Run SwiftLint | ||
| uses: norio-nomura/action-swiftlint@3.2.1 | ||
| # TODO: enable these settings: | ||
| # env: | ||
| # DIFF_BASE: ${{ github.base_ref }} | ||
| # with: | ||
| # args: --strict | ||