Skip to content

Commit 643468a

Browse files
committed
add pr gh action
1 parent 145c530 commit 643468a

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/pr.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: PR
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
8+
jobs:
9+
check:
10+
name: Vet, Build, Test
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Check out code
15+
uses: actions/checkout@v2
16+
17+
- name: Set up Go 1.16
18+
uses: actions/setup-go@v2
19+
with:
20+
go-version: 1.16
21+
id: go
22+
23+
- name: Vet
24+
run: go vet ./...
25+
26+
- name: Build
27+
run: go build ./...
28+
29+
- name: Test
30+
run: go test ./...

0 commit comments

Comments
 (0)