Skip to content

Commit 7c22be5

Browse files
author
Alexander Baranov
committed
enable github actions
1 parent 11649c5 commit 7c22be5

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/pr.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: PR sanity check
2+
3+
on: pull_request
4+
5+
jobs:
6+
prcheck:
7+
name: PR sanity check
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Setup Go
13+
uses: actions/setup-go@v2
14+
with:
15+
go-version: '1.18'
16+
- name: Install dependencies
17+
run: |
18+
go version
19+
go get -u golang.org/x/lint/golint
20+
- name: Run vet & lint
21+
run: |
22+
go vet .
23+
golint .
24+
- name: golangci-lint
25+
uses: golangci/golangci-lint-action@v3
26+
with:
27+
version: latest
28+
# # Run testing on the code
29+
# - name: Run testing
30+
# run: cd test && go test -v

0 commit comments

Comments
 (0)