From 4012e8625c1e1d5fa3acacc40df329f08fd90185 Mon Sep 17 00:00:00 2001 From: Tilman Vatteroth Date: Tue, 6 Dec 2022 12:04:11 +0100 Subject: [PATCH] fix(ci): use custom setup node action in backend e2e tests Signed-off-by: Tilman Vatteroth --- .github/workflows/backend-e2e-tests.yml | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) 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'