Skip to content

Commit 424f899

Browse files
committed
build: lint in gh actions
1 parent 07055f9 commit 424f899

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,13 @@ jobs:
2929
- name: Setup Go
3030
uses: actions/setup-go@v5
3131
with:
32-
go-version: "stable"
32+
go-version-file: "go.mod"
33+
34+
- name: Install linter
35+
uses: golangci/golangci-lint-action@v8
3336

3437
- name: Test and build
35-
run: make test build
38+
run: make vet lint test build
3639

3740
- name: Upload artifact
3841
uses: actions/upload-artifact@v4

.github/workflows/publish.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ name: publish
33
on:
44
push:
55
tags:
6-
- "*"
7-
workflow_dispatch:
6+
- "v*.*.*"
87

98
permissions:
109
contents: write
@@ -19,7 +18,7 @@ jobs:
1918
- name: Setup Go
2019
uses: actions/setup-go@v5
2120
with:
22-
go-version: "stable"
21+
go-version-file: "go.mod"
2322

2423
- name: Release and publish
2524
uses: goreleaser/goreleaser-action@v6

0 commit comments

Comments
 (0)