Skip to content

test script fixes

test script fixes #10

Workflow file for this run

name: Run Jest Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '14' # Use your desired Node.js version
- name: Install dependencies
run: npm ci
- name: Run Jest tests
run: npm test
- name: Upload npm debug log on failure
if: failure()
uses: actions/upload-artifact@v2
with:
name: npm-debug-log
path: /home/runner/.npm/_logs/*-debug.log