-
Notifications
You must be signed in to change notification settings - Fork 125
52 lines (52 loc) · 1.61 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
50
51
52
name: ci
on:
push:
jobs:
lint-go:
runs-on: ubuntu-latest
env:
GO_TAGS: ''
GO111MODULE: 'on'
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version-file: ".go-version"
- name: Setup golangci-lint
run: |-
download=https://raw.githubusercontent.com/golangci/golangci-lint/9a8a056e9fe49c0e9ed2287aedce1022c79a115b/install.sh # v1.52.2
curl -sSf "$download" | sh -s v1.51.2
./bin/golangci-lint version
- run: make check
check-deps-go:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version-file: ".go-version"
- run: make check-mod
test-go:
runs-on: ubuntu-latest
env:
GO_TAGS: ''
GO111MODULE: 'on'
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version-file: ".go-version"
- run: make test
build-go:
runs-on: ubuntu-latest
env:
GO_TAGS: ''
GO111MODULE: 'on'
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version-file: ".go-version"
- run: make dev
permissions:
contents: read