-
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (30 loc) · 747 Bytes
/
Copy pathlinter.yml
File metadata and controls
34 lines (30 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: linter
on:
push:
permissions:
contents: read
jobs:
linter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version-file: 'go.mod'
- name: Install task
uses: jaxxstorm/action-install-gh-release@v2.1.0
with:
repo: go-task/task
cache: enable
# tag:
- name: Install golangci-lint
uses: jaxxstorm/action-install-gh-release@v2.1.0
with:
repo: golangci/golangci-lint
tag: v2.11.1
cache: enable
binaries-location: golangci-lint-2.11.1-linux-amd64
- name: Run linter
shell: /usr/bin/bash {0}
run: |
task lint