Skip to content

Commit

Permalink
Create test.yml (#101)
Browse files Browse the repository at this point in the history
Workflow actions to run tests against Node.js versions 10, 12, and latest (corresponding to "engines" in package.json)
  • Loading branch information
benmusson authored Jun 26, 2023
1 parent c30f704 commit 99a1cb5
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Test

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
full:
name: Node.js Test Suite
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10, 12, '*']

steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Run tests
run: npm test

0 comments on commit 99a1cb5

Please sign in to comment.