Skip to content

Commit e91ee4d

Browse files
committed
Fixed checkout to repo before executing actions/setup-go@v5 step to avoid error that go.mod does not exist
1 parent 90131ce commit e91ee4d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ jobs:
1313
runs-on: ${{ matrix.os }}
1414

1515
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
1619
- name: Install Go
1720
uses: actions/setup-go@v5
1821
with:
1922
go-version: ${{ matrix.go-version }}
2023

21-
- name: Checkout code
22-
uses: actions/checkout@v4
23-
2424
- name: Test
2525
run: go test ./... -v -cover

0 commit comments

Comments
 (0)