Skip to content

Merge pull request #22 from tenntenn/fix-is-json #45

Merge pull request #22 from tenntenn/fix-is-json

Merge pull request #22 from tenntenn/fix-is-json #45

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.18.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 ./...