-
Notifications
You must be signed in to change notification settings - Fork 69
45 lines (43 loc) · 1013 Bytes
/
gobuild.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
name: Go Build
on:
push:
branches: [main]
paths:
- '**.go'
- '**.toml'
- 'go.mod'
pull_request:
branches: [main]
paths:
- '**.go'
- '**.toml'
- 'go.mod'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.18.x
- name: Checkout code
uses: actions/checkout@v3
- name: golangci-lint
# v3
uses: golangci/golangci-lint-action@ea0c88120e8fe1b09b2134dc97e879870b61b7ce
with:
version: v1.48.0
# skip-go-installation: true
# skip-pkg-cache: true
# skip-build-cache: true
args: --timeout 3m0s --verbose
- name: Check documentation
run: make check-docs
- name: Check i18n
run: make lint-lang
- name: Check vendoring
run: make check-vendor
- name: Build
run: make binary
- name: Unit tests
run: make test