Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bats-core/bats-assert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schulze <37703201+martin-schulze-vireso@users.noreply.github.com>2021-12-10 02:06:15 +0300
committerGitHub <noreply@github.com>2021-12-10 02:06:15 +0300
commitd8d97112d52d15a2aa194e0fb3243584d2c9b7a5 (patch)
tree3c649fd960d6f7430be359b2b6bef999cecb3a25
parent5497120d6602fba7e9499c8e38244dc3bde9e020 (diff)
Fix lock not found with setup-node
the default does not work without lock file
-rw-r--r--.github/workflows/node.js.yml6
1 files changed, 5 insertions, 1 deletions
diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml
index cd4ae0d..2c379b6 100644
--- a/.github/workflows/node.js.yml
+++ b/.github/workflows/node.js.yml
@@ -17,7 +17,11 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
+ - uses: actions/cache@v2
with:
- cache: 'npm'
+ path: ~/.npm
+ key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
+ restore-keys: |
+ ${{ runner.os }}-node-
- run: npm ci
- run: npm test