Skip to content

chore(main): Release v4.7.1 #2278

chore(main): Release v4.7.1

chore(main): Release v4.7.1 #2278

Workflow file for this run

name: "Unit tests"
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
unitests:
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Set up Go 1.x
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6
with:
go-version-file: go.mod
- run: go mod download
- run: go build ./...
- name: gen
if: github.event_name == 'pull_request'
run: make gen
- name: Fail if generation updated files
if: github.event_name == 'pull_request'
run: test "$(git status -s | wc -l)" -eq 0 || (git status -s; exit 1)
- name: Run tests
run: go test -race ./...