Update module github.com/alexkohler/prealloc to v1.0.2 #629
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: Check | |
| on: | |
| pull_request: ~ | |
| push: | |
| branches: | |
| - main | |
| permissions: read-all | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Install Go | |
| uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 | |
| with: | |
| go-version-file: go.mod | |
| - name: Verify action checksums | |
| env: | |
| JOB: ${{ github.job }} | |
| WORKFLOW: ${{ github.workflow_ref }} | |
| run: | | |
| WORKFLOW=$(echo "$WORKFLOW" | cut -d '@' -f 1 | cut -d '/' -f 3-5) | |
| go run ./cmd/ghasum verify -cache /home/runner/work/_actions -no-evict -offline "$WORKFLOW:$JOB" | |
| - name: Build binary | |
| run: go run tasks.go build | |
| dogfeed: | |
| name: Dogfeed (${{ matrix.name }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - name: macOS | |
| os: macos-26 | |
| - name: Ubuntu | |
| os: ubuntu-24.04 | |
| - name: Windows | |
| os: windows-2025 | |
| needs: | |
| - test | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Install Go | |
| uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 | |
| with: | |
| go-version-file: go.mod | |
| - name: Verify action checksums | |
| if: matrix.name == 'macOS' | |
| env: | |
| JOB: ${{ github.job }} | |
| WORKFLOW: ${{ github.workflow_ref }} | |
| run: | | |
| WORKFLOW=$(echo "$WORKFLOW" | cut -d '@' -f 1 | cut -d '/' -f 3-5) | |
| go run ./cmd/ghasum verify -cache /Users/runner/work/_actions -no-evict -offline "${WORKFLOW}:${JOB}" | |
| - name: Verify action checksums | |
| if: matrix.name == 'Ubuntu' | |
| env: | |
| JOB: ${{ github.job }} | |
| WORKFLOW: ${{ github.workflow_ref }} | |
| run: | | |
| WORKFLOW=$(echo "$WORKFLOW" | cut -d '@' -f 1 | cut -d '/' -f 3-5) | |
| go run ./cmd/ghasum verify -cache /home/runner/work/_actions -no-evict -offline "$WORKFLOW:$JOB" | |
| - name: Verify action checksums | |
| if: matrix.name == 'Windows' | |
| env: | |
| JOB: ${{ github.job }} | |
| WORKFLOW: ${{ github.workflow_ref }} | |
| run: | | |
| $WorkflowParts = $env:WORKFLOW -split '@' | |
| $WorkflowPath = ($WorkflowParts[0] -split '/')[2..4] -join '/' | |
| if (Test-Path -Path 'C:\a\_actions') { | |
| go run ./cmd/ghasum verify -cache C:\a\_actions -no-evict -offline "${WorkflowPath}:${env:JOB}" | |
| } else { | |
| go run ./cmd/ghasum verify -cache D:\a\_actions -no-evict -offline "${WorkflowPath}:${env:JOB}" | |
| } | |
| - name: Uninitialize ghasum | |
| run: rm .github/workflows/gha.sum | |
| - name: Run on this repository | |
| run: | | |
| go run ./cmd/ghasum init | |
| go run ./cmd/ghasum verify | |
| format: | |
| name: Format | |
| runs-on: ubuntu-24.04 | |
| needs: | |
| - build | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Install Go | |
| uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 | |
| with: | |
| go-version-file: go.mod | |
| - name: Verify action checksums | |
| env: | |
| JOB: ${{ github.job }} | |
| WORKFLOW: ${{ github.workflow_ref }} | |
| run: | | |
| WORKFLOW=$(echo "$WORKFLOW" | cut -d '@' -f 1 | cut -d '/' -f 3-5) | |
| go run ./cmd/ghasum verify -cache /home/runner/work/_actions -no-evict -offline "$WORKFLOW:$JOB" | |
| - name: Check source code formatting | |
| run: go run tasks.go format-check | |
| reproducible: | |
| name: Reproducible build | |
| runs-on: ubuntu-24.04 | |
| needs: | |
| - build | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Install Go | |
| uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 | |
| with: | |
| go-version-file: go.mod | |
| - name: Verify action checksums | |
| env: | |
| JOB: ${{ github.job }} | |
| WORKFLOW: ${{ github.workflow_ref }} | |
| run: | | |
| WORKFLOW=$(echo "$WORKFLOW" | cut -d '@' -f 1 | cut -d '/' -f 3-5) | |
| go run ./cmd/ghasum verify -cache /home/runner/work/_actions -no-evict -offline "$WORKFLOW:$JOB" | |
| - name: Check reproducibility | |
| run: go run tasks.go reproducible | |
| test: | |
| name: Test | |
| runs-on: ubuntu-24.04 | |
| needs: | |
| - build | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Install Go | |
| uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 | |
| with: | |
| go-version-file: go.mod | |
| - name: Verify action checksums | |
| env: | |
| JOB: ${{ github.job }} | |
| WORKFLOW: ${{ github.workflow_ref }} | |
| run: | | |
| WORKFLOW=$(echo "$WORKFLOW" | cut -d '@' -f 1 | cut -d '/' -f 3-5) | |
| go run ./cmd/ghasum verify -cache /home/runner/work/_actions -no-evict -offline "$WORKFLOW:$JOB" | |
| - name: Run tests | |
| run: go run tasks.go coverage | |
| vet: | |
| name: Vet | |
| runs-on: ubuntu-24.04 | |
| needs: | |
| - build | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Install Go | |
| uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 | |
| with: | |
| go-version-file: go.mod | |
| - name: Verify action checksums | |
| env: | |
| JOB: ${{ github.job }} | |
| WORKFLOW: ${{ github.workflow_ref }} | |
| run: | | |
| WORKFLOW=$(echo "$WORKFLOW" | cut -d '@' -f 1 | cut -d '/' -f 3-5) | |
| go run ./cmd/ghasum verify -cache /home/runner/work/_actions -no-evict -offline "$WORKFLOW:$JOB" | |
| - name: Vet source code | |
| run: go run tasks.go vet |