Skip to content

Commit

Permalink
Golangci try to use go mod download
Browse files Browse the repository at this point in the history
  • Loading branch information
x1m3 committed Dec 3, 2024
1 parent c3ab3a4 commit ccee64d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/ci-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,19 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
cache: true

- name: Download Go modules
run: go mod tidy && go mod download

- name: Clear module cache
run: go clean -modcache

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/ci-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,11 @@ jobs:
go-version-file: go.mod
cache: true

- name: Download Go modules
run: go mod tidy && go mod download

- name: Clear module cache
run: go clean -modcache

- name: Unit Tests
run: go test -v -race -timeout=60s ./...
run: go test -v -race -timeout=60s ./...

0 comments on commit ccee64d

Please sign in to comment.