Skip to content

Commit

Permalink
Merge pull request #1771 from dedis/work-fe1-omajzoub-ci-cache-node-m…
Browse files Browse the repository at this point in the history
…odules

Fix CI node_modules caching issue #847
  • Loading branch information
osm-alt authored Mar 11, 2024
2 parents 414bc2a + 258af1b commit 8f30905
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Setup node cache
- name: Setup node npm cache
uses: actions/cache@v2
env:
cache-name: cache-node-modules
cache-name: cache-node-npm
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
Expand All @@ -53,6 +53,17 @@ jobs:
${{ runner.os }}-build-
${{ runner.os }}-
- name: Setup node modules cache
# MacOS is excluded since caching node modules made it slower than it was without caching
if: ${{ runner.os != 'macOS'}}
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ./fe1-web/node_modules
key: ${{ runner.os }}-nodemodules-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-nodemodules-

- name: Setup expo
run: npm install -g @expo/cli

Expand Down

0 comments on commit 8f30905

Please sign in to comment.