Cache npm install, add tests

This commit is contained in:
David Edmondson
2021-09-06 13:29:35 -07:00
parent 5873b5fe19
commit 17da325585
3 changed files with 4035 additions and 3753 deletions
+10 -7
View File
@@ -25,13 +25,16 @@ jobs:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# - name: Cache NPM dependencies
# uses: actions/cache@v1
# with:
# path: ~/.npm
# key: ${{ runner.OS }}-npm-cache-${{ hashFiles('**/package-lock.json') }}
# restore-keys: |
# ${{ runner.OS }}-npm-cache-
- name: Cache NPM dependencies
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.OS }}-npm-cache-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-npm-cache-
- name: Test
run: npm run test
- name: Install NPM dependencies
run: npm ci