Skip to content

Instantly share code, notes, and snippets.

@elshanx
Created November 29, 2021 14:09
Show Gist options
  • Save elshanx/37c3bd9a19a8d350c0b497ae83c473e5 to your computer and use it in GitHub Desktop.
Save elshanx/37c3bd9a19a8d350c0b497ae83c473e5 to your computer and use it in GitHub Desktop.
github workflow for running tests on push and PRs
name: Node.js CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 15.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment