-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (39 loc) · 1.13 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
on:
push:
pull_request:
jobs:
Test:
strategy:
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
go-version: ['1.21']
runs-on: ${{ matrix.os }}
steps:
- name: Set up Go
uses: actions/setup-go@84cbf8094393cdc5fe1fe1671ff2647332956b1a # v3.2.1
with:
go-version: ${{ matrix.go-version }}
- name: Checkout repository
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
with:
submodules: true
lfs: true
- name: Test
run: go test ./...
Lint:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@84cbf8094393cdc5fe1fe1671ff2647332956b1a # v3.2.1
with:
go-version: 1.21
- name: Checkout repository
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
with:
submodules: true
lfs: true
- name: Install go-critic
run: go install github.com/go-critic/go-critic/cmd/[email protected]
- name: Run go-critic
run: gocritic check -enableAll