feat: add git worktree actions #427
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: Conformance | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - ".github/workflows/conformance.yml" | |
| - "conformance/**" | |
| - "cmd/**" | |
| - "go.mod" | |
| - "go.sum" | |
| - "internal/**" | |
| - "Makefile" | |
| - "specs/**" | |
| pull_request: | |
| # Keep this workflow directly rerunnable from PR-only maintenance commits. | |
| types: | |
| - opened | |
| - reopened | |
| - synchronize | |
| - ready_for_review | |
| paths: | |
| - ".github/workflows/conformance.yml" | |
| - "conformance/**" | |
| - "cmd/**" | |
| - "go.mod" | |
| - "go.sum" | |
| - "internal/**" | |
| - "Makefile" | |
| - "specs/**" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| env: | |
| GO_VERSION: "1.26.5" | |
| jobs: | |
| conformance: | |
| name: Conformance tests (${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 30 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| go_test_flags: "-v --race" | |
| - os: windows-latest | |
| go_test_flags: "-v" | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Go | |
| uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 | |
| with: | |
| go-version: ${{ env.GO_VERSION }} | |
| - name: Install GNU Make | |
| if: runner.os == 'Windows' | |
| shell: pwsh | |
| run: | | |
| if (-not (Get-Command make -ErrorAction SilentlyContinue)) { | |
| choco install make --no-progress -y | |
| } | |
| - name: Run conformance tests | |
| shell: bash | |
| run: make conformance GO_TEST_FLAGS="${{ matrix.go_test_flags }}" |