-
Notifications
You must be signed in to change notification settings - Fork 28
44 lines (40 loc) · 977 Bytes
/
go.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
name: Go
on:
push:
branches:
- main
- v[0-9]*
pull_request:
branches:
- main
- v[0-9]*
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version-file: "src/go.mod"
- run: go run github.com/onsi/ginkgo/v2/ginkgo -r --race --randomize-all --randomize-suites --keep-going
working-directory: src
vet:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version-file: "src/go.mod"
- run: go vet ./...
working-directory: src
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version-file: "src/go.mod"
- uses: golangci/[email protected]
with:
args: --config .golangci.yml --timeout 5m
working-directory: src