Switch to composite actions (Forgejo 11 lacks workflow_call)
This commit is contained in:
parent
46bcafb9cb
commit
753a3b37de
6 changed files with 141 additions and 118 deletions
14
node-checks/action.yaml
Normal file
14
node-checks/action.yaml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue