-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (38 loc) · 1.36 KB
/
lint.yml
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
35
36
37
38
39
40
41
42
43
44
name: lint
on:
push:
tags:
- "v*"
branches:
- main
pull_request:
branches: [ main ]
permissions:
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
pull-requests: read
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install asdf dependencies
uses: asdf-vm/actions/install@v3
- name: Read the right version of golangci-lint
id: golangci_lint_version
run: |
golangCiLintVersion=$(grep '^golangci-lint ' .tool-versions | awk '{print $2}')
echo "::set-output name=golangCiLintVersion::${golangCiLintVersion}"
- name: golangci-lint
uses: golangci/golangci-lint-action@v3.7.0
with: