-
Notifications
You must be signed in to change notification settings - Fork 188
49 lines (41 loc) · 1.18 KB
/
ci.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
45
46
47
48
49
name: CI (no build)
on:
pull_request:
branches:
- 'main*'
- 'release*'
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- name: Set up repository
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
# Should be consistent with go.mod
go-version: '1.19.6'
- name: Lint
uses: golangci/golangci-lint-action@v2
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: v1.45.2
# If set to true then the action will use pre-installed Go
skip-go-installation: true
# Optional: golangci-lint command line arguments.
# The config file has lower priority than command-line options.
args: --config=.golangci.yml
test:
name: test
runs-on: ubuntu-latest
steps:
- name: Set up repository
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
# Should be consistent with go.mod
go-version: '1.19.6'
- name: Unit test
run: make test