1
0
Fork 0
mirror of https://github.com/vbatts/git-validation.git synced 2024-12-28 00:16:29 +00:00
git-validation/.github/workflows/go.yml
Vincent Batts 69476678b0
*go: trying out magefiles
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2023-03-14 21:56:37 -04:00

35 lines
967 B
YAML

name: vet and build
on:
pull_request:
branches_ignore: []
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go: ['1.17', '1.18', '1.19', '1.20']
name: Documentation and Linting
steps:
- uses: actions/checkout@v2
with:
path: go/src/github.com/vbatts/git-validation
# commit for v1 release
- uses: actions/setup-go@0caeaed6fd66a828038c2da3c0f662a42862658f
with:
go-version: ${{ matrix.go }}
- name: vet and build
env:
GOPATH: /home/runner/work/git-validation/git-validation/go
run: |
set -x
export PATH=$GOPATH/bin:$PATH
cd go/src/github.com/vbatts/git-validation
go run mage.go -v vet build test
./git-validation -run DCO,short-subject,dangling-whitespace -v
./git-validation -run DCO,short-subject,dangling-whitespace -v -range ${GITHUB_SHA}..HEAD