forked from guregu/null
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (28 loc) · 747 Bytes
/
ci.yml
File metadata and controls
35 lines (28 loc) · 747 Bytes
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
name: build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: set up go 1.16
uses: actions/setup-go@v2
with:
go-version: 1.16
id: go
- name: checkout
uses: actions/checkout@v2
- name: test
run: go test -v ./...
env:
GOFLAGS: "-mod=vendor"
- name: install golangci-lint
run: |
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $GITHUB_WORKSPACE v1.38.0
- name: run linters
run: $GITHUB_WORKSPACE/golangci-lint run
env:
GOFLAGS: "-mod=vendor"