1
0
Fork 1
mirror of https://github.com/vbatts/tar-split.git synced 2024-11-15 12:58:38 +00:00
tar-split/.github/workflows/lint.yml
Vincent Batts 19fa6f3d1e
github/workflow: first pass
May add magefile/mage next, but it seems to require go1.17? So, I'm
holding off for a minute.

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2023-03-25 20:39:31 -04:00

35 lines
871 B
YAML

name: lint
on:
pull_request:
branches_ignore: []
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
go: ['1.20']
name: Linting
steps:
- uses: actions/checkout@v2
with:
path: go/src/github.com/vbatts/tar-split
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: lint
env:
GOPATH: /home/runner/work/tar-split/tar-split/go
run: |
set -x
#curl -sSL https://github.com/magefile/mage/releases/download/v1.14.0/mage_1.14.0_Linux-64bit.tar.gz | tar -xzv mage && mv mage $GOPATH/bin/
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.51.2
export PATH=$GOPATH/bin:$PATH
cd go/src/github.com/vbatts/tar-split
golangci-lint run
#go run mage.go -v lint