Skip to content

Commit

Permalink
ci: simplifying ci dep caching
Browse files Browse the repository at this point in the history
  • Loading branch information
erunion committed Dec 1, 2022
1 parent 20e4e3f commit e185363
Showing 1 changed file with 2 additions and 27 deletions.
29 changes: 2 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}

- name: Get npm cache directory
id: npm-cache-dir
run: |
echo "::set-output name=dir::$(npm config get cache)"
- uses: actions/cache@v3.0.11
id: npm-cache
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
cache: npm

- name: Install npm@7
run: npm install -g npm@7
Expand Down Expand Up @@ -81,19 +69,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 14

- name: Get npm cache directory
id: npm-cache-dir
run: |
echo "::set-output name=dir::$(npm config get cache)"
- uses: actions/cache@v3.0.11
id: npm-cache
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
cache: npm

- name: Install npm@7
run: npm install -g npm@7
Expand All @@ -118,4 +94,3 @@ jobs:
if: matrix.browser == 'firefox'
run: |
npm run coverage:browser -- --browsers=FirefoxHeadless

0 comments on commit e185363

Please sign in to comment.