From 91ead4f864f646a968f3400c9137019a91b8b3dd Mon Sep 17 00:00:00 2001 From: Abhinav Jha Date: Mon, 21 Mar 2022 11:43:42 +0530 Subject: [PATCH] fix: Use existing yarn.lock as-is in CI (#11497) * Update github workflows to use the lockfile in the codebase and not update it * Fix jobs array formatting --- .github/workflows/TestReuseActions.yml | 4 ++-- .github/workflows/client-build.yml | 2 +- .github/workflows/github-release.yml | 2 +- .github/workflows/integration-tests-command.yml | 10 +++++----- .github/workflows/test-build-docker-image.yml | 4 ++-- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/TestReuseActions.yml b/.github/workflows/TestReuseActions.yml index 7d469365f3..82744711db 100644 --- a/.github/workflows/TestReuseActions.yml +++ b/.github/workflows/TestReuseActions.yml @@ -103,7 +103,7 @@ jobs: # Install all the dependencies - name: Install dependencies if: steps.run_result.outputs.run_result != 'success' - run: yarn install + run: yarn install --frozen-lockfile - name: Set the build environment based on the branch if: steps.run_result.outputs.run_result != 'success' @@ -609,7 +609,7 @@ jobs: # Install all the dependencies - name: Install dependencies if: steps.run_result.outputs.run_result != 'success' - run: yarn install + run: yarn install --frozen-lockfile - name: Download the react build artifact if: steps.run_result.outputs.run_result != 'success' diff --git a/.github/workflows/client-build.yml b/.github/workflows/client-build.yml index 396b2be215..3941241633 100644 --- a/.github/workflows/client-build.yml +++ b/.github/workflows/client-build.yml @@ -77,7 +77,7 @@ jobs: # Install all the dependencies - name: Install dependencies - run: yarn install + run: yarn install --frozen-lockfile - name: Set the build environment based on the branch id: vars diff --git a/.github/workflows/github-release.yml b/.github/workflows/github-release.yml index 01775a2eba..6e66433520 100644 --- a/.github/workflows/github-release.yml +++ b/.github/workflows/github-release.yml @@ -76,7 +76,7 @@ jobs: ${{ runner.OS }}- - name: Install dependencies - run: yarn install + run: yarn install --frozen-lockfile - name: Create the bundle env: diff --git a/.github/workflows/integration-tests-command.yml b/.github/workflows/integration-tests-command.yml index 8e9b3faccf..f5e1d3cae2 100644 --- a/.github/workflows/integration-tests-command.yml +++ b/.github/workflows/integration-tests-command.yml @@ -214,7 +214,7 @@ jobs: # Install all the dependencies - name: Install dependencies if: steps.run_result.outputs.run_result != 'success' - run: yarn install + run: yarn install --frozen-lockfile - name: Set the build environment based on the branch if: steps.run_result.outputs.run_result != 'success' @@ -772,7 +772,7 @@ jobs: fail-fast: false matrix: job: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23] - + # Service containers to run with this job. Required for running tests services: # Label used to access the service container @@ -871,7 +871,7 @@ jobs: # Install all the dependencies - name: Install dependencies if: steps.run_result.outputs.run_result != 'success' - run: yarn install + run: yarn install --frozen-lockfile - name: Download the react build artifact if: steps.run_result.outputs.run_result != 'success' @@ -1363,7 +1363,7 @@ jobs: # Install all the dependencies - name: Install dependencies if: steps.run_result.outputs.run_result != 'success' - run: yarn install + run: yarn install --frozen-lockfile - name: Download the react build artifact if: steps.run_result.outputs.run_result != 'success' @@ -1446,7 +1446,7 @@ jobs: if: steps.run_result.outputs.run_result != 'success' working-directory: app/client/perf shell: bash - run: yarn install + run: yarn install --frozen-lockfile - name: Change test script permissions if: steps.run_result.outputs.run_result != 'success' diff --git a/.github/workflows/test-build-docker-image.yml b/.github/workflows/test-build-docker-image.yml index 4efd27b753..69c14432fd 100644 --- a/.github/workflows/test-build-docker-image.yml +++ b/.github/workflows/test-build-docker-image.yml @@ -109,7 +109,7 @@ jobs: # Install all the dependencies - name: Install dependencies if: steps.run_result.outputs.run_result != 'success' - run: yarn install + run: yarn install --frozen-lockfile - name: Set the build environment based on the branch if: steps.run_result.outputs.run_result != 'success' @@ -944,7 +944,7 @@ jobs: # Install all the dependencies - name: Install dependencies if: steps.run_result.outputs.run_result != 'success' - run: yarn install + run: yarn install --frozen-lockfile - name: Download the react build artifact if: steps.run_result.outputs.run_result != 'success'