From 8234fe4b726359b143b948508bb197a3bee33d5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Gonz=C3=A1lez=20Mu=C3=B1oz?= Date: Mon, 9 Dec 2024 10:54:40 +0100 Subject: [PATCH] fixes client e2e CI --- .github/workflows/client_ci_cd.yml | 39 +++++++++++++++++++++--------- 1 file changed, 28 insertions(+), 11 deletions(-) diff --git a/.github/workflows/client_ci_cd.yml b/.github/workflows/client_ci_cd.yml index ff4ab78c..e35d81a0 100644 --- a/.github/workflows/client_ci_cd.yml +++ b/.github/workflows/client_ci_cd.yml @@ -8,30 +8,47 @@ env: jobs: tests: name: Run client tests - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 + defaults: + run: + working-directory: client steps: - name: Checkoutī¸ - uses: actions/checkout@v2 + uses: actions/checkout@v4 - - name: Use Node.js 16.14 - uses: actions/setup-node@v3 + - name: Node setup + uses: actions/setup-node@v4 with: - node-version: '16.14' + node-version-file: client/.nvmrc +# cache: 'pnpm' - - name: Install node modules - working-directory: client - run: yarn install + - uses: pnpm/action-setup@v4 + with: + package_json_file: client/package.json +# run_install: | +# - args: [--frozen-lockfile, --prod] + + +# - name: Cache dependencies +# uses: actions/cache@v3 +# with: +# path: node_modules +# key: ${{ runner.os }}-node_modules-${{ hashFiles('pnpm-lock.yaml') }} +# restore-keys: | +# ${{ runner.os }}-node_modules- + + - name: Install dependencies + run: pnpm install - name: Run tests - working-directory: client - run: yarn test + run: pnpm test deploy: name: Deploy client app # if: (github.head_ref || github.ref_name) == 'main' || (github.head_ref || github.ref_name) == 'staging' if: (github.head_ref || github.ref_name) == 'staging' - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 needs: tests steps: