Skip to content

cache

cache #9

name: Run Unit Tests
on: [push]
jobs:
unit-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Cache dependencies
uses: actions/cache@v2
with:
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
path: node_modules
- name: Use Node
uses: actions/setup-node@v3
with:
node-version: 19.0.1
- name: Install Dependencies
run: npm i --force
- name: Unit testing
run: |
npm run test