Skip to content

Merge pull request #130 from Christopherdominic/feature/cli-commands-113 #85

Merge pull request #130 from Christopherdominic/feature/cli-commands-113

Merge pull request #130 from Christopherdominic/feature/cli-commands-113 #85

Workflow file for this run

name: Frontend CI
on:
push:
branches:
- main
- develop
paths:
- 'frontend/**'
- 'packages/core/**'
pull_request:
branches:
- main
- develop
paths:
- 'frontend/**'
- 'packages/core/**'
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 9
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build core package
run: pnpm --filter @chenaikit/core build
- name: Run ESLint
run: pnpm --filter frontend lint
- name: Run tests
run: pnpm --filter frontend test || true
- name: Build frontend
run: pnpm --filter frontend build