Skip to content

Commit

Permalink
fixes ci
Browse files Browse the repository at this point in the history
Signed-off-by: PuneetPunamiya <[email protected]>
  • Loading branch information
PuneetPunamiya committed Feb 13, 2025
1 parent 4cc090d commit 0f0c194
Showing 1 changed file with 37 additions and 5 deletions.
42 changes: 37 additions & 5 deletions .github/workflows/golangci-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,44 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
- name: Checkout Code
uses: actions/checkout@v4 # Latest stable version

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: stable
- name: golangci-lint
uses: golangci/golangci-lint-action@ec5d18412c0aeab7936cb16880d708ba2a64e1ae # v6.2.0

- name: Cache Go Modules
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-mod-
- name: Cache Go Build
uses: actions/cache@v3
with:
path: ~/.cache/go-build
key: ${{ runner.os }}-go-build-${{ github.sha }}
restore-keys: |
${{ runner.os }}-go-build-
- name: Install Dependencies
run: go mod tidy

- name: Verify Build
run: go build ./...

- name: Debug Go Environment
run: |
go env
go list -m all
go mod verify
- name: Run GolangCI-Lint
uses: golangci/[email protected]
with:
version: v1.60
args: --timeout=10m
args: --timeout=10m --verbose

0 comments on commit 0f0c194

Please sign in to comment.