forked from deriv-com/deriv-app
-
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.
[FEQ] george / FEQ-2702 / Improve Coverall workflow time execution. P…
…art 2. Adding caching npm packages (deriv-com#17708) * chore: add caching * fix: 🚑 cache not reading form base repo * fix: 🚑 add update cache workflow, fix coverall restore cache * Rename update_cache.yml to update_npm_cache.yml
- Loading branch information
1 parent
a7ca6a2
commit d18125f
Showing
2 changed files
with
43 additions
and
7 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
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Update node modules cache | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build_cache: | ||
name: Build cache | ||
runs-on: Runner_16cores_Deriv-app | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | ||
- name: Setup Node | ||
uses: './.github/actions/setup_node' | ||
- name: Cache node modules | ||
id: cache-npm | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
node_modules | ||
packages/*/node_modules | ||
key: node_modules-cache-${{ hashFiles('package-lock.json', 'packages/*/package.json') }} | ||
- if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }} | ||
name: Install dependencies | ||
uses: "./.github/actions/npm_install_from_cache" |