-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (34 loc) · 1.15 KB
/
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
name: Go
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.15
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Run golangci-lint
# You may pin to the exact commit or the version.
# uses: golangci/golangci-lint-action@04eca2038305127fb1e6683425b6864cd5612f2d
uses: golangci/[email protected]
with:
# version of golangci-lint to use in form of v1.2.3
version: v1.31
# golangci-lint command line arguments
args: -c .golangci.yml
# golangci-lint working directory, default is project root
#working-directory: # optional
# the token is used for fetching patch of a pull request to show only new issues
# github-token: # default is ${{ github.token }}
# if set to true and the action runs on a pull request - the action outputs only newly found issues
# only-new-issues:
- name: Build
run: go build -v cmd/bztcp/main.go