Skip to content

Adding a unittest action #1

Adding a unittest action

Adding a unittest action #1

Workflow file for this run

name: unittest
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest

Check failure on line 7 in .github/workflows/unittest.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/unittest.yml

Invalid workflow file

You have an error in your yaml syntax on line 7
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- name: Cache Modules
uses: actions/cache@v3
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
- run: npm run install
- run: npm run test