feat: add MakeWarehouseBktOp for gated warehouse-bucket site replication #821
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: Golangci-lint | |
| on: | |
| workflow_dispatch: # ability to manually run from the github actions UI | |
| pull_request: | |
| branches: | |
| - main | |
| - master | |
| push: | |
| branches: | |
| - main | |
| - master | |
| jobs: | |
| golangci-lint: | |
| name: golangci-lint Validation | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| strategy: | |
| matrix: | |
| go-version: [1.25.x] | |
| steps: | |
| - name: Set up Go ${{ matrix.go-version }} | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| id: go | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| - name: Run golangci-lint (includes deprecation checks) | |
| uses: golangci/golangci-lint-action@v7 | |
| with: | |
| args: --timeout 5m --config ./.golangci.yml | |
| - name: Staticcheck run with go vet | |
| run: | | |
| echo "Running go vet..." | |
| go vet -vettool=$(which staticcheck) ./... | |
| - name: Regenerate, vet and test for generated files | |
| run: | | |
| go vet ./... | |
| go generate ./... >/dev/null | |
| (! git diff --name-only | grep '_gen.go$') || \ | |
| (echo "Non-committed changes in auto-generated code is detected, please commit them to proceed." && false) |