Skip to content

Commit

Permalink
fixes client e2e CI
Browse files Browse the repository at this point in the history
  • Loading branch information
andresgnlez committed Dec 9, 2024
1 parent 96c7e4d commit 8234fe4
Showing 1 changed file with 28 additions and 11 deletions.
39 changes: 28 additions & 11 deletions .github/workflows/client_ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8234fe4

Please sign in to comment.