Commit d3cdec74 authored by tom's avatar tom

try another solution for node_modules cache

parent ec253b23
...@@ -42,18 +42,17 @@ jobs: ...@@ -42,18 +42,17 @@ jobs:
node-version: 18 node-version: 18
cache: 'yarn' cache: 'yarn'
- name: Get yarn cache directory path - name: Cache node_modules
id: yarn-cache-dir-path uses: actions/cache@v3
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT id: cache-node-modules
- uses: actions/cache@v3
id: yarn-cache
with: with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} path: |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} node_modules
key: node_modules-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
- name: Install dependencies - name: Install dependencies
run: yarn --frozen-lockfile --offline if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: yarn --frozen-lockfile
- name: Run ESLint - name: Run ESLint
run: yarn lint:eslint run: yarn lint:eslint
...@@ -75,18 +74,17 @@ jobs: ...@@ -75,18 +74,17 @@ jobs:
node-version: 18 node-version: 18
cache: 'yarn' cache: 'yarn'
- name: Get yarn cache directory path - name: Cache node_modules
id: yarn-cache-dir-path uses: actions/cache@v3
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT id: cache-node-modules
- uses: actions/cache@v3
id: yarn-cache
with: with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} path: |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} node_modules
key: node_modules-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
- name: Install dependencies - name: Install dependencies
run: yarn --frozen-lockfile --offline if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: yarn --frozen-lockfile
- name: Run Jest - name: Run Jest
run: yarn test:jest run: yarn test:jest
...@@ -118,18 +116,17 @@ jobs: ...@@ -118,18 +116,17 @@ jobs:
node-version: 18 node-version: 18
cache: 'yarn' cache: 'yarn'
- name: Get yarn cache directory path - name: Cache node_modules
id: yarn-cache-dir-path uses: actions/cache@v3
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT id: cache-node-modules
- uses: actions/cache@v3
id: yarn-cache
with: with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} path: |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} node_modules
key: node_modules-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
- name: Install dependencies - name: Install dependencies
run: yarn --frozen-lockfile --offline if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: yarn --frozen-lockfile
- name: Run PlayWright - name: Run PlayWright
run: yarn test:pw:ci run: yarn test:pw:ci
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment