Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 25 additions & 28 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,33 +67,30 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: frontend/package-lock.json
cache: pnpm
cache-dependency-path: frontend/pnpm-lock.yaml

- name: Install deps
run: npm ci

- name: Security audit
run: npm audit --audit-level=high

- name: Verify lock file is not dirty
run: git diff --exit-code package-lock.json
run: pnpm install --frozen-lockfile

- name: Lint
if: needs.changes.outputs.frontend == 'true'
run: npm run lint
run: pnpm lint

- name: Build
if: needs.changes.outputs.frontend == 'true'
run: npm run build
run: pnpm build

- name: Test
if: needs.changes.outputs.frontend == 'true'
run: npm test
run: pnpm test

- name: Upload coverage report
if: needs.changes.outputs.frontend == 'true'
Expand All @@ -118,32 +115,29 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: backend/package-lock.json
cache: pnpm
cache-dependency-path: backend/pnpm-lock.yaml

- name: Install deps
run: npm ci

- name: Security audit
run: npm audit --audit-level=high

- name: Verify lock file is not dirty
run: git diff --exit-code package-lock.json
run: pnpm install --frozen-lockfile

- name: Build
if: needs.changes.outputs.backend == 'true'
run: npm run build
run: pnpm build

- name: Test
if: needs.changes.outputs.backend == 'true'
env:
NODE_ENV: test
JWT_SECRET: test-jwt-secret-value-with-minimum-length-32
run: npm test
run: pnpm test

- name: Upload coverage report
if: needs.changes.outputs.backend == 'true'
Expand All @@ -168,24 +162,27 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: mobile/package-lock.json
cache: pnpm
cache-dependency-path: mobile/pnpm-lock.yaml

- name: Install deps
if: needs.changes.outputs.mobile == 'true'
run: npm ci --legacy-peer-deps
run: pnpm install --frozen-lockfile

- name: Type check
if: needs.changes.outputs.mobile == 'true'
run: npm run type-check
run: pnpm type-check

- name: Lint
if: needs.changes.outputs.mobile == 'true'
run: npm run lint
run: pnpm lint

- name: Skip note (no mobile changes)
if: needs.changes.outputs.mobile != 'true'
Expand Down
Loading
Loading