Skip to content

Commit 5fd8690

Browse files
authored
Merge pull request #52 from vbatts/bye-travis
add github actions
2 parents 60cb871 + 25069be commit 5fd8690

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/go.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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+
set -x
31+
export PATH=$GOPATH/bin:$PATH
32+
cd go/src/github.com/vbatts/git-validation
33+
go get ./...
34+
go vet -x ./...
35+
go build -v .
36+
go test -v ./...
37+
./git-validation -run DCO,short-subject,dangling-whitespace -v -range ${GITHUB_SHA}..HEAD

0 commit comments

Comments
 (0)