Skip to content

Commit

Permalink
fix client CI try #5
Browse files Browse the repository at this point in the history
  • Loading branch information
agnlez committed Dec 9, 2024
1 parent 64cc121 commit 333cdfc
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/client_ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,16 @@ name: Client CI/CD

on: [push, workflow_dispatch]

defaults:
run:
working-directory: ./client

env:
NEXT_PUBLIC_BASE_PATH: ""

jobs:
tests:
name: Run client tests
runs-on: ubuntu-22.04
defaults:
run:
working-directory: client

steps:
- name: Checkout️
Expand All @@ -21,13 +20,13 @@ jobs:
- name: Node setup
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
node-version-file: client/.nvmrc
cache: 'pnpm'

- uses: pnpm/action-setup@v4
with:
run_install: |
- recursive: true
args: [--frozen-lockfile, --prod]
# with:
# run_install: |
# - args: [--frozen-lockfile, --prod]

- name: Cache dependencies
uses: actions/cache@v3
Expand All @@ -37,6 +36,10 @@ jobs:
restore-keys: |
${{ runner.os }}-node_modules-
- name: Install dependencies
working-directory: .
run: pnpm install

- name: Run tests
working-directory: client
run: pnpm test
Expand All @@ -45,7 +48,7 @@ jobs:
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 333cdfc

Please sign in to comment.