Summary: - Add push paths-ignore filters for docs/**, README.md, AGENTS.md, and LICENSE. - Leave pull_request, workflow_dispatch, and tag release behavior unchanged. Verification: - Parsed changed workflow YAML with PyYAML via Nix. Reviewed-on: #26 Co-authored-by: vickydotbat <vickydotbat@tutamail.com> Co-committed-by: vickydotbat <vickydotbat@tutamail.com>
31 lines
693 B
YAML
31 lines
693 B
YAML
# Lint + unit tests for the Crucible suite. PR-first: PRs + push to main (D7).
|
|
name: test
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths-ignore:
|
|
- "docs/**"
|
|
- "README.md"
|
|
- "AGENTS.md"
|
|
- "LICENSE"
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: nix-docker
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with: { fetch-depth: 0 }
|
|
- name: vet + test + lint
|
|
run: |
|
|
nix develop --command bash -c '
|
|
set -euo pipefail
|
|
go vet ./...
|
|
go test ./...
|
|
shellcheck scripts/*.sh
|
|
yamllint .gitea
|
|
'
|
|
- name: binary smoke (fail-closed contract)
|
|
run: nix develop --command make smoke
|