fix(repo): cache nightly node_modules per run to avoid stale graph (#16216)
This commit is contained in:
parent
149ad5ab17
commit
98501aa56b
8
.github/workflows/e2e-matrix.yml
vendored
8
.github/workflows/e2e-matrix.yml
vendored
@ -50,7 +50,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
lookup-only: true
|
lookup-only: true
|
||||||
path: '**/node_modules'
|
path: '**/node_modules'
|
||||||
key: ${{ runner.os }}-modules-${{ matrix.node_version }}-${{ hashFiles('**/yarn.lock') }}
|
key: ${{ runner.os }}-modules-${{ matrix.node_version }}-${{ github.run_id }}
|
||||||
|
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
if: steps.cache-modules.outputs.cache-hit != 'true'
|
if: steps.cache-modules.outputs.cache-hit != 'true'
|
||||||
@ -350,7 +350,7 @@ jobs:
|
|||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: '**/node_modules'
|
path: '**/node_modules'
|
||||||
key: ${{ runner.os }}-modules-${{ matrix.node_version }}-${{ hashFiles('**/yarn.lock') }}
|
key: ${{ runner.os }}-modules-${{ matrix.node_version }}-${{ github.run_id }}
|
||||||
|
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
if: steps.cache-modules.outputs.cache-hit != 'true'
|
if: steps.cache-modules.outputs.cache-hit != 'true'
|
||||||
@ -412,9 +412,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Run e2e tests
|
- name: Run e2e tests
|
||||||
id: e2e-run
|
id: e2e-run
|
||||||
run: |
|
run: yarn nx run-many -t e2e,e2e-macos -p ${{ matrix.project }}
|
||||||
yarn nx run-many --target=e2e --projects="${{ join(matrix.project) }}" --parallel=1
|
|
||||||
yarn nx run-many --target=e2e-macos --projects="${{ join(matrix.project) }}" --parallel=1
|
|
||||||
timeout-minutes: ${{ matrix.os_timeout }}
|
timeout-minutes: ${{ matrix.os_timeout }}
|
||||||
env:
|
env:
|
||||||
GIT_AUTHOR_EMAIL: test@test.com
|
GIT_AUTHOR_EMAIL: test@test.com
|
||||||
|
|||||||
8
.github/workflows/e2e-windows.yml
vendored
8
.github/workflows/e2e-windows.yml
vendored
@ -40,7 +40,7 @@ jobs:
|
|||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: '**/node_modules'
|
path: '**/node_modules'
|
||||||
key: windows-modules-${{ matrix.node_version }}-${{ hashFiles('**/yarn.lock') }}
|
key: ${{ runner.os }}-modules-${{ matrix.node_version }}-${{ github.run_id }}
|
||||||
|
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
if: steps.cache-modules.outputs.cache-hit != 'true'
|
if: steps.cache-modules.outputs.cache-hit != 'true'
|
||||||
@ -268,7 +268,7 @@ jobs:
|
|||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: '**/node_modules'
|
path: '**/node_modules'
|
||||||
key: ${{ runner.os }}-modules-${{ matrix.node_version }}-${{ hashFiles('**/yarn.lock') }}
|
key: ${{ runner.os }}-modules-${{ matrix.node_version }}-${{ github.run_id }}
|
||||||
|
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
if: steps.cache-modules.outputs.cache-hit != 'true'
|
if: steps.cache-modules.outputs.cache-hit != 'true'
|
||||||
@ -280,7 +280,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: '${{ github.workspace }}/.cypress'
|
path: '${{ github.workspace }}/.cypress'
|
||||||
key: ${{ runner.os }}-cypress
|
key: ${{ runner.os }}-cypress
|
||||||
|
|
||||||
- name: Install Cypress
|
- name: Install Cypress
|
||||||
if: steps.cache-cypress.outputs.cache-hit != 'true'
|
if: steps.cache-cypress.outputs.cache-hit != 'true'
|
||||||
run: npx cypress install
|
run: npx cypress install
|
||||||
@ -292,7 +292,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Run e2e tests
|
- name: Run e2e tests
|
||||||
id: e2e-run
|
id: e2e-run
|
||||||
run: yarn nx run-many --target=e2e --projects="${{ join(matrix.project) }}" --parallel=1
|
run: yarn nx run ${{ matrix.project }}:e2e
|
||||||
timeout-minutes: 120
|
timeout-minutes: 120
|
||||||
env:
|
env:
|
||||||
GIT_AUTHOR_EMAIL: test@test.com
|
GIT_AUTHOR_EMAIL: test@test.com
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user