-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (37 loc) · 1.06 KB
/
SessionStorage-UT.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: SessionStorage-UT
on: [push]
jobs:
install:
name: Install dependencies
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Cache node modules
id: cache-npm
uses: actions/[email protected]
env:
cache-name: cached-npm-deps
with:
path: ./node_modules
key: ${{ hashFiles('./package.json') }}
- name: Install required dependencies on cache miss (npm)
if: steps.cache-npm.outputs.cache-hit != 'true'
run: |
npm install
test:
name: Run the unit tests
runs-on: windows-latest
needs: [install]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
- name: Pull the npm dependencies
uses: actions/[email protected]
with:
path: ./node_modules
key: ${{ hashFiles('./package.json') }}
- name: Run unit tests
run: npx jest