Skip to content

Commit 0a22030

Browse files
committed
add github actions
For now, we'll leave travis, since we have logic for it. Once Travis stops working, then we'll remove the logic and the ./.travis.yml Fixes #50 Signed-off-by: Vincent Batts <[email protected]>
1 parent 60cb871 commit 0a22030

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/go.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: vet and build
2+
3+
on:
4+
pull_request:
5+
branches_ignore: []
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
go: ['1.13', '1.14', '1.15', '1.16']
13+
14+
name: Documentation and Linting
15+
steps:
16+
17+
- uses: actions/checkout@v2
18+
with:
19+
path: go/src/github.com/vbatts/git-validation
20+
21+
# commit for v1 release
22+
- uses: actions/setup-go@0caeaed6fd66a828038c2da3c0f662a42862658f
23+
with:
24+
go-version: ${{ matrix.go }}
25+
26+
- name: vet and build
27+
env:
28+
GOPATH: /home/runner/work/git-validation/git-validation/go
29+
run: |
30+
export PATH=$GOPATH/bin:$PATH
31+
cd go/src/github.com/vbatts/git-validation
32+
go get ./...
33+
go vet -x ./...
34+
go build -v .
35+
go test -v ./...
36+
./git-validation -run DCO,short-subject,dangling-whitespace -v -range $GITHUB_SHA

0 commit comments

Comments
 (0)