Skip to content

migrate godoc.org to pkg.go.dev #49

migrate godoc.org to pkg.go.dev

migrate godoc.org to pkg.go.dev #49

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@v4
with:
go-version: 1.16
- uses: actions/checkout@v3
- 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@v4
with:
go-version: 1.16
- uses: actions/checkout@v3
- run: go generate ./...
- name: Check go generate diff
run: (! git diff | grep '^') # check diff