NodeJsContinuous Integration with GitHub Actions

CI/CD pipelines automate the process of testing and deploying code. GitHub Actions can run automated tests and deploy your Node.js application whenever you push updates to your repository.

// .github/workflows/nodejs.yml
name: Node.js CI

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Setup Node.js
        uses: actions/setup-node@v2
        with:
          node-version: '18'
      - run: npm install
      - run: npm test