Skip to content

Commit c2ca75e

Browse files
committed
fix(ci): checkout code before setting up go
1 parent 6fa7697 commit c2ca75e

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,19 @@ jobs:
1212
build:
1313
runs-on: ubuntu-latest
1414
steps:
15+
- name: Check out code
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
1519
- name: Set up Go 1.23.2
1620
uses: actions/setup-go@v5
1721
id: go
1822
with:
1923
go-version: 1.23.2
20-
- name: Check out code into the Go module directory
21-
uses: actions/checkout@v4
22-
with:
23-
fetch-depth: 0
2424
- name: Verify go.mod is sane
2525
run: go mod tidy && git diff --no-patch --exit-code
2626
- name: Golangci-lint
2727
uses: golangci/golangci-lint-action@v6.2.0
28-
- name: Install dependencies
29-
run: go mod download
3028
- name: Run unit tests
3129
run: go test ./...
3230
- name: GoReleaser Build Snapshot

0 commit comments

Comments
 (0)