A robot that tests every push.
Continuous integration (CI) runs your tests automatically every time code is pushed. GitHub Actions does this with a small settings file.
# .github/workflows/test.yml
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- run: npm ci
- run: npm test
What it gives you
Tests run even when you forget.
A green tick or red cross on every pull request.
Problems caught before they reach main.
Ask the agent to set it up for you.
Source: GitHub ↗
Red means stop. Even on a Friday.