Full Stack Web Development
Step 20 / 21120 min

CI/CD with GitHub Actions

DevOps & Shipping

Explanation

Continuous integration and delivery automate tests and deployments on every push or pull request.

Code example

yaml
name: CI
on:
  push:
    branches: [main]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: 22
      - run: npm ci
      - run: npm run lint
      - run: npm test

Helpful resources

Exercise

Add a GitHub Actions workflow that installs dependencies and runs lint/tests on main.

CI/CD with GitHub Actions · Full Stack Web Development | XirfadHub Roadmap