Skip to content

Commit

Permalink
build(ci): test config
Browse files Browse the repository at this point in the history
  • Loading branch information
vhf committed Apr 1, 2024
1 parent b0cd436 commit b9e45a9
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Tests
'on':
push:
pull_request:
types:
- opened
- synchronize
- reopened

jobs:
test:
name: 'Node.js v${{ matrix.node }}'
runs-on: ubuntu-latest
strategy:
matrix:
node:
- 14
- 16
- 18
- 20
steps:
- uses: actions/setup-node@v1
with:
node-version: '${{ matrix.node }}'
- uses: actions/checkout@v2
- name: 'Cache node_modules'
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-v${{ matrix.node }}-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-node-v${{ matrix.node }}-
- name: Install Dependencies
run: npm ci
- name: Run All Node.js Tests
run: npm run test

0 comments on commit b9e45a9

Please sign in to comment.