-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from complexdatacollective/feature/actions-lat…
…est-node update GH actions to latest node
- Loading branch information
Showing
1 changed file
with
3 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: [ master ] | ||
branches: [master] | ||
pull_request: | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
|
@@ -14,16 +14,14 @@ jobs: | |
- uses: actions/checkout@v2 | ||
# Set node version | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '12.14.1' | ||
- name: Set NPM 7 | ||
run: npm install -g [email protected] | ||
# Cache node_modules | ||
- uses: actions/cache@v2 | ||
env: | ||
cache-name: cache-node-modules | ||
with: | ||
path: '**/node_modules' | ||
path: "**/node_modules" | ||
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} | ||
|
||
- name: Install node modules | ||
|
@@ -33,4 +31,4 @@ jobs: | |
run: npm run lint -- --max-warnings 0 | ||
|
||
- name: Run tests | ||
run: npm run test | ||
run: npm run test |