Skip to content

Merge pull request #10 from k1LoW/use-line-directive #12

Merge pull request #10 from k1LoW/use-line-directive

Merge pull request #10 from k1LoW/use-line-directive #12

Workflow file for this run

name: Test and Vet
on:
push:
branches:
- main
pull_request:
branches:
- main
release:
types:
- published
- created
- edited
defaults:
run:
shell: bash
jobs:
test:
runs-on: ubuntu-20.04
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.16.x
- name: Checkout code
uses: actions/checkout@v2
- name: Cache Go module and build cache
uses: actions/cache@v2
with:
key: go-${{ hashFiles('**/go.sum') }}
path: |
~/go/pkg/mod
restore-keys: |
go-
- name: Install tennvet
run: |
GOBIN=$(pwd) go install github.com/tenntenn/tennvet@latest
- name: Test and vet
run: |
go vet ./...
go vet -vettool=$(pwd)/tennvet ./...
go test -v -race ./...