project-template/.forgejo/workflows/build.yaml
Erich Blume 03c00a7f6c
Some checks failed
Build / validate (push) Failing after 3s
Add branch-cleanup task, fix taplo-lint pre-commit hook
- mise-tasks/branch-cleanup: delete merged local/remote branches via
  git + Forgejo API (1Password/env/flag token resolution)
- mise.toml: add uv (runs PEP 723 task scripts) and bat (ai-docs output)
- CLAUDE.md: re-point at AGENTS.md
- prek.toml: drop taplo-lint hook. It fetches the remote SchemaStore
  catalog, which the pinned (dormant) taplo CLI can no longer decode and
  which fails in sandboxed CI. check-toml still validates syntax and
  taplo-format still formats.
- .forgejo workflows / .gitea/template / dagger: minor resync

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-05-31 06:06:30 -07:00

44 lines
1.1 KiB
YAML

# Build Workflow
#
# Generic CI validation for template-based repositories.
# By default this runs the repo's prek checks, which already cover:
# - workflow linting
# - docs integrity checks
# - formatting/linting hooks configured by the project
#
# Projects can extend this with an optional executable hook at:
# .forgejo/scripts/build
#
# The optional hook is the place for project-specific validation such as:
# - unit/integration tests
# - package builds
# - schema validation
# - language-specific linters
name: Build
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
validate:
runs-on: k8s
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Run repository checks
run: |
prek run --all-files
- name: Run project-specific build hook
run: |
if [ -x .forgejo/scripts/build ]; then
echo "Running project-specific build hook..."
./.forgejo/scripts/build
else
echo "No .forgejo/scripts/build hook found; template validation complete."
fi