generated from atomicgo/template
-
-
Notifications
You must be signed in to change notification settings - Fork 9
30 lines (25 loc) Β· 1.34 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
# βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# β β
# β IMPORTANT NOTE β
# β β
# β This file is synced with https://github.com/atomicgo/template β
# β β
# β Please apply all changes to the template repository β
# β β
# βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
name: Code Analysis
on: [push, pull_request]
jobs:
lint:
if: "!contains(github.event.head_commit.message, 'autoupdate')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "stable"
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest