From bbb73889d82baa86164c683324a0475c42290f74 Mon Sep 17 00:00:00 2001 From: Patryk Andrzejewski Date: Mon, 14 Oct 2024 11:09:57 +0200 Subject: [PATCH] Add deps installation (#5213) --- .changeset/afraid-trees-wave.md | 5 +++++ .github/workflows/run-test-cron.yml | 20 +++++++++++++++++++- .github/workflows/run-test-manual.yml | 20 +++++++++++++++++++- .github/workflows/run-tests-on-release.yml | 20 ++++++++++++++++++++ 4 files changed, 63 insertions(+), 2 deletions(-) create mode 100644 .changeset/afraid-trees-wave.md diff --git a/.changeset/afraid-trees-wave.md b/.changeset/afraid-trees-wave.md new file mode 100644 index 0000000000..493e1b1c7e --- /dev/null +++ b/.changeset/afraid-trees-wave.md @@ -0,0 +1,5 @@ +--- +"saleor-dashboard": patch +--- + +Now dependencies are installed properly in our pipelines, this means auth scripts are no longer stopping. diff --git a/.github/workflows/run-test-cron.yml b/.github/workflows/run-test-cron.yml index 8b02907604..366cb39b0b 100644 --- a/.github/workflows/run-test-cron.yml +++ b/.github/workflows/run-test-cron.yml @@ -23,8 +23,26 @@ jobs: ACCOUNTS: ${{ steps.accounts.outputs.ACCOUNTS }} steps: - uses: actions/checkout@v4 + + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version-file: ".nvmrc" + + - name: Cache node modules + uses: actions/cache@v3 + env: + cache-name: cache-node-modules with: - sparse-checkout: ./.github/actions + path: ~/.npm + key: ${{ runner.os }}-qa-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-qa-${{ env.cache-name }}- + ${{ runner.os }}-qa- + ${{ runner.os }}- + + - name: Install deps + run: npm ci - name: Generate variables id: cloud_variables diff --git a/.github/workflows/run-test-manual.yml b/.github/workflows/run-test-manual.yml index 4430634ddb..8e73035f96 100644 --- a/.github/workflows/run-test-manual.yml +++ b/.github/workflows/run-test-manual.yml @@ -20,8 +20,26 @@ jobs: ACCOUNTS: ${{ steps.accounts.outputs.ACCOUNTS }} steps: - uses: actions/checkout@v4 + + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version-file: ".nvmrc" + + - name: Cache node modules + uses: actions/cache@v3 + env: + cache-name: cache-node-modules with: - sparse-checkout: ./.github/actions + path: ~/.npm + key: ${{ runner.os }}-qa-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-qa-${{ env.cache-name }}- + ${{ runner.os }}-qa- + ${{ runner.os }}- + + - name: Install deps + run: npm ci - name: Set variables mode id: set_variables_mode diff --git a/.github/workflows/run-tests-on-release.yml b/.github/workflows/run-tests-on-release.yml index e20420693d..f69c598666 100644 --- a/.github/workflows/run-tests-on-release.yml +++ b/.github/workflows/run-tests-on-release.yml @@ -65,6 +65,26 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version-file: ".nvmrc" + + - name: Cache node modules + uses: actions/cache@v3 + env: + cache-name: cache-node-modules + with: + path: ~/.npm + key: ${{ runner.os }}-qa-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-qa-${{ env.cache-name }}- + ${{ runner.os }}-qa- + ${{ runner.os }}- + + - name: Install deps + run: npm ci + - id: check-framework uses: actions/github-script@v7 env: