Continuous integration

Continuous integration automatically runs the project's build and tests on a server, on every pushed change. It detects regressions quickly, guarantees the same verification environment, and prevents merging code whose tests fail.

Example

on: [push, pull_request]
jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: npm ci && npm test

Related concepts

The whole glossary