actions/setup-node: Set up your GitHub Actions workflow with a specific version of node.js

PHOTO EMBED

Sat Aug 17 2024 08:11:54 GMT+0000 (Coordinated Universal Time)

Saved by @acassell

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node: [ 14, 16, 18 ]
    name: Node ${{ matrix.node }} sample
    steps:
      - uses: actions/checkout@v4
      - name: Setup node
        uses: actions/setup-node@v4
        with:
          node-version: ${{ matrix.node }}
      - run: npm ci
      - run: npm test
content_copyCOPY

https://github.com/actions/setup-node