From a25c61ea087caf5268cc09e321008397fbdf5ce2 Mon Sep 17 00:00:00 2001 From: mahula Date: Sat, 9 Mar 2024 20:06:47 +0100 Subject: [PATCH] set node version in unit test workflows --- .github/workflows/backend.test.unit.code.yml | 7 +++---- .github/workflows/presenter.test.unit.code.yml | 8 +++----- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/backend.test.unit.code.yml b/.github/workflows/backend.test.unit.code.yml index 1e45cdf217..a6be0bbc08 100644 --- a/.github/workflows/backend.test.unit.code.yml +++ b/.github/workflows/backend.test.unit.code.yml @@ -32,10 +32,6 @@ jobs: env: WORKING_DIRECTORY: ./backend steps: - - name: Set Node.js version - - uses: actions/setup-node@v4 - with: - node-version: '>=21' - name: Checkout code uses: actions/checkout@v4 @@ -43,5 +39,8 @@ jobs: run: docker-compose -f docker-compose.yml up --detach --no-deps database - name: Backend | Unit + - uses: actions/setup-node@v4 + with: + node-version: '>=21' run: npm install && npm run db:migrate && npm run test:unit working-directory: ${{env.WORKING_DIRECTORY}} \ No newline at end of file diff --git a/.github/workflows/presenter.test.unit.code.yml b/.github/workflows/presenter.test.unit.code.yml index b52010a323..708764eb99 100644 --- a/.github/workflows/presenter.test.unit.code.yml +++ b/.github/workflows/presenter.test.unit.code.yml @@ -29,14 +29,12 @@ jobs: env: WORKING_DIRECTORY: ./presenter steps: - - name: Set Node version - - uses: actions/setup-node@v4 - with: - node-version: '>=21' - - name: Checkout code uses: actions/checkout@v4 - name: Presenter | Unit + - uses: actions/setup-node@v4 + with: + node-version: '>=21' run: npm install && npm run test:unit working-directory: ${{env.WORKING_DIRECTORY}} \ No newline at end of file