Skip to content

Add govet new format #62

Add govet new format

Add govet new format #62

Workflow file for this run

name: Tests
on:
push:
branches:
- $default-branch
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v5
with:
go-version: "1.21"
- uses: actions/checkout@v4
- name: Test
run: go test -v -race -coverpkg=./... -coverprofile=coverage.txt ./...
- uses: codecov/codecov-action@v3
go-generate:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v5
with:
go-version: "1.21"
- uses: actions/checkout@v4
- run: go generate ./...
- name: Check go generate diff
run: (! git diff | grep '^') # check diff