Skip to content

Commit 7d326a1

Browse files
authored
Create go.yml
1 parent 7c8bc69 commit 7d326a1

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/go.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Go
2+
on:
3+
pull_request:
4+
branches:
5+
- master
6+
jobs:
7+
8+
build:
9+
name: Build
10+
runs-on: ubuntu-latest
11+
steps:
12+
13+
- name: Setup
14+
uses: actions/setup-go@v1
15+
with:
16+
go-version: 1.13
17+
id: go
18+
19+
- name: Check out code into the Go module directory
20+
uses: actions/checkout@v1
21+
22+
- name: Get dependencies
23+
run: |
24+
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.21.0
25+
26+
- name: Lint
27+
run: golangci-lint run
28+
29+
- name: Test
30+
run: go test -v ./...

0 commit comments

Comments
 (0)