This repository was archived by the owner on Jan 16, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 66
83 lines (63 loc) · 1.9 KB
/
go.yml
File metadata and controls
83 lines (63 loc) · 1.9 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: Go
on: [push, pull_request]
jobs:
linux:
# The type of runner that the job will run on
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go: ["^1.16"]
name: Linux Go ${{ matrix.go }}
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v2
- name: checkout tags
run: |
git fetch --prune --unshallow --tags
- name: Set up Go
uses: actions/setup-go@v2
with:
stable: 'false'
go-version: ${{ matrix.go }}
- name: Build
run: make
- name: Test
run: make -C test DEFAULT_TEST_TARGET=test
# Run golint at the end of steps, because installing golint will
# change "go.mod", and which may cause failure for unit test.
- name: "Test: Golint"
run: |
export GO111MODULE=on
go get -u golang.org/x/lint/golint
make golint
macos:
# The type of runner that the job will run on
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
go: ["1.14.15"]
name: macOS Go ${{ matrix.go }}
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v2
- name: checkout tags
run: |
git fetch --prune --unshallow --tags
- name: Set up Go
uses: actions/setup-go@v2
with:
stable: 'false'
go-version: ${{ matrix.go }}
- name: Build
run: make
- name: Test
run: make -C test DEFAULT_TEST_TARGET=prove
# Run golint at the end of steps, because installing golint will
# change "go.mod", and which may cause failure for unit test.
- name: "Test: Golint"
run: |
export GO111MODULE=on
go get -u golang.org/x/lint/golint
make golint