mirror of
https://github.com/vbatts/git-validation.git
synced 2025-06-04 11:02:27 +00:00
*.go: linting and adding lint to the checks done
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
6f5b21b58e
commit
21d1635d10
5 changed files with 51 additions and 6 deletions
33
.github/workflows/lint.yml
vendored
Normal file
33
.github/workflows/lint.yml
vendored
Normal file
|
@ -0,0 +1,33 @@
|
|||
name: lint
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches_ignore: []
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
go: ['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: lint
|
||||
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 lint
|
Loading…
Add table
Add a link
Reference in a new issue