Skip to content

Commit 85febf8

Browse files
committed
chore: modify workflow
1 parent bc1316e commit 85febf8

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/makefile.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,19 @@ jobs:
1313
- name: Set up Go
1414
uses: actions/setup-go@v5
1515
with:
16-
go-version: 'stable'
16+
go-version: '~1.20'
1717
cache: false
18-
18+
1919
- name: Checkout Source
2020
uses: actions/checkout@v4
2121
with:
2222
fetch-depth: 1
2323

24+
- name: Install dependencies
25+
run: |
26+
go mod download
27+
go mod tidy
28+
2429
- name: Build
2530
run: |
2631
make build
@@ -30,7 +35,7 @@ jobs:
3035
uses: securego/gosec@master
3136
with:
3237
args: -exclude=G107,G204,G304,G401,G505 -quiet ./...
33-
38+
3439
- name: Run staticcheck
3540
uses: dominikh/staticcheck-action@v1
3641
with:
@@ -53,4 +58,4 @@ jobs:
5358
flags: unittests # optional
5459
token: ${{ secrets.CODECOV_TOKEN }} # required
5560
verbose: true # optional (default = false)
56-
61+

0 commit comments

Comments
 (0)