How-to GuidesAuthor Workflows
Run Repository Checks on Demand
Add a manual workflow that installs dependencies and runs repository tests.
Use this guide when a repository check should run on demand in a clean Shipfox job. The workflow uses fixed shell commands, not an agent.
Before you begin
You need:
- A project that can sync workflows.
- An online runner with the
ubuntu-latestlabel. - A Node.js repository with a lockfile and an
npm testcommand.
Add the workflow
Create .shipfox/workflows/project-checks.yml. This is a complete workflow:
# yaml-language-server: $schema=https://www.shipfox.io/docs/workflow.schema.json
name: Run project checks
runner: ubuntu-latest
triggers:
manual:
source: manual
event: fire
jobs:
checks:
steps:
- run: npm ci
- run: npm testCommit and push the file to the project's default branch. Wait for Run project checks to appear in the project's Workflows tab.
Verify the checks
Select Run and open the new run.
- Confirm that
npm cifinishes successfully. - Open the
npm teststep. Check that its output matches a local test run. - In a test repository, push a safe failing test to the default branch and start another run. Check that the test step fails. Revert the test change afterward.
Use Inspect logs when output is missing. See Run step fields for all fields. See Environment variables for workflow, job, and step order.
Was this page helpful?
Edit this page on GitHub