Skip to content

add document link in the error message #493

add document link in the error message

add document link in the error message #493

Workflow file for this run

---
name: Unit Tests
on:
pull_request:
types: ['opened', 'synchronize']
paths:
- '**.go'
- 'vendor/**'
- '.github/workflows/**'
permissions:
contents: read
pull-requests: read
jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
cache: true
- run: go generate ./...
- name: git diff
run: |
git diff --compact-summary --exit-code || \
(echo; echo "Unexpected difference in directories after code generation. Run 'go generate ./...' command and commit."; exit 1)
- name: display verbose changes if failure
if: failure()
run: git diff
test:
runs-on: ubuntu-latest
strategy:
fail-fast: true
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '1.21'
- run: chmod -R +x ./scripts
- run: bash scripts/gogetcookie.sh
- run: make test
env:
GITHUB_ACTIONS_STAGE: "UNIT_TESTS"