Skip to content

CICD-072 · Check a Go repository under race instrumentation ​

Encyclopedia · Language build toolchains · All snippets

Previous · CICD-071 · Next · CICD-073

1. Where it fits ​

  • Placement Bash run step following checkout, or equivalent lab terminal.
  • Prerequisites source repository with committed build manifest and pinned matching toolchain.
  • Platforms local-linux, github-actions, gitea-actions.

2. Copy the snippet ​

bash
go mod verify
go test -race ./...

3. How it works ​

The shell predicate makes the expected state explicit and returns a nonzero status when it is not satisfied.

4. Verify the result ​

Use a supported Linux architecture and C toolchain for race support.

Validation syntax-validated (Bash parse). Status definitions.