diff --git a/.github/workflows/backend-e2e-tests.yml b/.github/workflows/backend-e2e-tests.yml index b49932d46..b63f3e802 100644 --- a/.github/workflows/backend-e2e-tests.yml +++ b/.github/workflows/backend-e2e-tests.yml @@ -88,14 +88,11 @@ jobs: with: fetch-depth: 0 - - name: Use Node.js ${{ env.NODEJS_VERSION }} + - name: Setup node if: needs.changes.outputs.changed == 'true' - uses: actions/setup-node@v3 + uses: ./.github/actions/setup-node with: - node-version: ${{ env.NODEJS_VERSION }} - - - run: yarn install --immutable - if: needs.changes.outputs.changed == 'true' + NODE_VERSION: ${{ env.NODEJS_VERSION }} - run: yarn run test:e2e if: needs.changes.outputs.changed == 'true' @@ -120,14 +117,11 @@ jobs: with: fetch-depth: 0 - - name: Use Node.js ${{ env.NODEJS_VERSION }} + - name: Setup node if: needs.changes.outputs.changed == 'true' - uses: actions/setup-node@v3 + uses: ./.github/actions/setup-node with: - node-version: ${{ env.NODEJS_VERSION }} - - - run: yarn install --immutable - if: needs.changes.outputs.changed == 'true' + NODE_VERSION: ${{ env.NODEJS_VERSION }} - run: yarn run test:e2e if: needs.changes.outputs.changed == 'true'