Bump the action-minor-patch-versions group across 1 directory with 2 … #50
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: "Copilot Setup Steps" | |
| on: | |
| workflow_dispatch: | |
| push: | |
| paths: | |
| - .github/workflows/copilot-setup-steps.yml | |
| pull_request: | |
| paths: | |
| - .github/workflows/copilot-setup-steps.yml | |
| permissions: | |
| contents: read | |
| jobs: | |
| copilot-setup-steps: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: Set up Go | |
| uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0 | |
| with: | |
| go-version: "stable" | |
| cache: false | |
| - name: Compute build cache key | |
| id: build-cache-key | |
| run: echo "checksum=${{ hashFiles('go.mod', 'go.sum', 'tools/go.mod', 'tools/go.sum', '**/*.go') }}" >> "$GITHUB_OUTPUT" | |
| - name: Cache Go module cache | |
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | |
| with: | |
| path: ~/go/pkg/mod | |
| key: copilot-go-mod-${{ runner.os }}-${{ hashFiles('go.sum', 'tools/go.sum') }} | |
| - name: Cache Go build cache | |
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | |
| with: | |
| path: ~/.cache/go-build | |
| key: copilot-go-build-${{ runner.os }}-${{ steps.build-cache-key.outputs.checksum }} | |
| restore-keys: | | |
| copilot-go-build-${{ runner.os }}- | |
| - name: Download Go module dependencies | |
| run: | | |
| go mod download | |
| go mod download -modfile tools/go.mod | |
| - name: Install golangci-lint | |
| run: make install/lint | |
| - name: Warm up govulncheck | |
| run: go tool -modfile tools/go.mod govulncheck -version |