-
Notifications
You must be signed in to change notification settings - Fork 30
44 lines (41 loc) · 947 Bytes
/
test.yaml
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: test
on:
push:
branches:
- "**"
pull_request: {}
jobs:
lint:
name: lint
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [1.12.x, 1.13.x, 1.14.x, 1.15.x, 1.16.x, 1.17.x]
steps:
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: checkout
uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.45.2
test:
name: go test
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [1.12.x, 1.13.x, 1.14.x, 1.15.x, 1.16.x, 1.17.x]
steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
version: ${{ matrix.go-version }}
- name: checkout
uses: actions/checkout@v3
- name: Run go tests
env:
GO111MODULE: on
run: |
go test ./... -v