mirror of
https://github.com/vbatts/tar-split.git
synced 2025-08-02 12:20:28 +00:00
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>
This commit is contained in:
parent
3c599ed534
commit
19fa6f3d1e
2 changed files with 70 additions and 0 deletions
35
.github/workflows/go.yml
vendored
Normal file
35
.github/workflows/go.yml
vendored
Normal file
|
@ -0,0 +1,35 @@
|
|||
name: build and vet
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches_ignore: []
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
go: ['1.15', '1.16', '1.17', '1.18', '1.19', '1.20']
|
||||
|
||||
name: build and vet
|
||||
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: vet and build
|
||||
env:
|
||||
GOPATH: /home/runner/work/tar-split/tar-split/go
|
||||
run: |
|
||||
set -x
|
||||
export PATH=$GOPATH/bin:$PATH
|
||||
cd go/src/github.com/vbatts/tar-split
|
||||
go test -v ./...
|
||||
go vet -v ./...
|
||||
go build -v ./...
|
||||
#go run mage.go -v vet build test
|
Loading…
Add table
Add a link
Reference in a new issue