chore(deps): bump dorny/paths-filter from 3.0.2 to 4.0.1 #149
Workflow file for this run
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: Test | |
| permissions: | |
| contents: read | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| merge_group: | |
| types: | |
| - checks_requested | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| load-env: | |
| uses: ./.github/workflows/load-env.yaml | |
| test: | |
| needs: | |
| - load-env | |
| env: | |
| package_name: ${{ needs.load-env.outputs.package-name }} | |
| strategy: | |
| matrix: | |
| include: | |
| - os: ${{ needs.load-env.outputs.macOS-runner-os }} | |
| build-system: swift | |
| swift-version: ${{ needs.load-env.outputs.swift-version }} | |
| xcode-version: ${{ needs.load-env.outputs.xcode-version }} | |
| - os: ubuntu-latest | |
| build-system: swift | |
| swift-version: ${{ needs.load-env.outputs.swift-version }} | |
| container: swift:${{ needs.load-env.outputs.swift-version }} | |
| - os: ${{ needs.load-env.outputs.macOS-runner-os }} | |
| build-system: xcodebuild | |
| xcode-version: ${{ needs.load-env.outputs.xcode-version }} | |
| runs-on: ${{ matrix.os }} | |
| container: ${{ matrix.container }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| - name: Prepare Swift | |
| uses: ./.github/workflows/templates/prepare-swift/ | |
| with: | |
| xcode-version: ${{ matrix.xcode-version }} | |
| swift-version: ${{ matrix.swift-version }} | |
| build-system: ${{ matrix.build-system }} | |
| configuration: debug | |
| - name: Build with ${{ matrix.build-system }} | |
| run: mise tasks run build:${BUILD_SYSTEM} --configuration=debug | |
| env: | |
| BUILD_SYSTEM: ${{ matrix.build-system }} | |
| - name: Test with ${{ matrix.build-system }} | |
| run: mise tasks run test:${BUILD_SYSTEM} --configuration=debug | |
| env: | |
| BUILD_SYSTEM: ${{ matrix.build-system }} | |
| lint: | |
| needs: | |
| - load-env | |
| runs-on: ubuntu-latest | |
| container: swift:${{ needs.load-env.outputs.swift-version }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| - name: Prepare Swift | |
| uses: ./.github/workflows/templates/prepare-swift/ | |
| with: | |
| xcode-version: ${{ needs.load-env.outputs.xcode-version }} | |
| swift-version: ${{ needs.load-env.outputs.swift-version }} | |
| build-system: swift | |
| configuration: debug | |
| use-build-cache: false | |
| - name: Lint | |
| run: mise tasks run lint |