Skip to content

Commit 1674803

Browse files
Armin BecherArmin Becher
Armin Becher
authored and
Armin Becher
committed
build: add linter
1 parent 294b01a commit 1674803

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

.github/workflows/main.yml

+17-10
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,36 @@ jobs:
1414
- name: Checkout
1515
uses: actions/checkout@main
1616
- name: Markup Link Checker (mlc)
17-
uses: becheran/mlc@v0.15.4
18-
coverage:
17+
uses: becheran/mlc@v0.16.2
18+
coverage:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- uses: actions/checkout@main
2222
- uses: codecov/codecov-action@v1
23+
lint:
24+
name: lint
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v3
28+
- uses: actions/setup-go@v4
29+
with:
30+
go-version: "1.21"
31+
- name: golangci-lint
32+
uses: golangci/golangci-lint-action@v3
33+
with:
34+
version: v1.53
2335
test-and-release:
2436
runs-on: ubuntu-latest
2537
needs: [check-links]
2638
steps:
2739
- name: Checkout
28-
uses: actions/checkout@v2
29-
with:
30-
fetch-depth: 0
31-
40+
uses: actions/checkout@v3
3241
- name: Set up Go
33-
uses: actions/setup-go@v2
42+
uses: actions/setup-go@v4
3443
with:
35-
go-version: 1.18
36-
44+
go-version: 1.21
3745
- name: Test
3846
run: go test ./...
39-
4047
- name: Run GoReleaser
4148
uses: goreleaser/goreleaser-action@v2
4249
if: startsWith(github.ref, 'refs/tags/')

0 commit comments

Comments
 (0)