Skip to content

Commit

Permalink
Added GitHub Action to trigger testing
Browse files Browse the repository at this point in the history
  • Loading branch information
modos189 committed May 15, 2024
1 parent 4f7e655 commit 7fe9466
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Tests
'on':
push:
pull_request:
types:
- opened
- synchronize
- reopened

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

0 comments on commit 7fe9466

Please sign in to comment.