Switch to composite actions (Forgejo 11 lacks workflow_call)

This commit is contained in:
Noah Holt 2026-08-10 21:48:08 -05:00
parent 46bcafb9cb
commit 753a3b37de
6 changed files with 141 additions and 118 deletions

14
node-checks/action.yaml Normal file
View file

@ -0,0 +1,14 @@
name: node-checks
description: >
Node/TypeScript checks: npm ci, then lint and test if the package defines
them. Run after actions/checkout, in a job with node available (the
homelab runner's `docker` label image has it).
runs:
using: composite
steps:
- run: npm ci
shell: bash
- run: npm run lint --if-present
shell: bash
- run: npm test --if-present
shell: bash