Skip to content

chore(deps): Update actions/setup-go action to v7 #2356

chore(deps): Update actions/setup-go action to v7

chore(deps): Update actions/setup-go action to v7 #2356

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@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
- name: Set up Go 1.x
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7
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 ./...