Add golangci-lint CI #13
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: e2e-kind | |
| on: | |
| pull_request: | |
| push: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.head.repo.full_name || github.repository }}-${{ github.head_ref || github.ref_name }} | |
| cancel-in-progress: true | |
| jobs: | |
| e2e-kind: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| cache: false | |
| go-version-file: go.mod | |
| - name: Resolve Go cache paths | |
| id: go-cache-paths | |
| run: | | |
| echo "gomodcache=$(go env GOMODCACHE)" >> "$GITHUB_OUTPUT" | |
| echo "gocache=$(go env GOCACHE)" >> "$GITHUB_OUTPUT" | |
| - name: Restore Go shared cache | |
| uses: actions/cache/restore@v4 | |
| with: | |
| path: | | |
| ${{ steps.go-cache-paths.outputs.gomodcache }} | |
| ${{ steps.go-cache-paths.outputs.gocache }} | |
| key: go-shared-${{ runner.os }}-${{ hashFiles('go.sum') }} | |
| restore-keys: | | |
| go-shared-${{ runner.os }}- | |
| - name: Set up kubectl | |
| uses: azure/setup-kubectl@v4 | |
| with: | |
| version: v1.33.1 | |
| - name: Set up kind | |
| uses: engineerd/setup-kind@v0.6.2 | |
| with: | |
| version: v0.31.0 | |
| - name: Run kind e2e test | |
| run: ./hack/e2e-test-with-kind.sh run |