Skip to content
Merged
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
27 changes: 20 additions & 7 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ on:

jobs:
quality:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4

Expand All @@ -24,18 +29,23 @@ jobs:
run: cd client && npm install

- name: Install Server Dependencies
run: cd server && rm -f package-lock.json && npm install
run: cd server && npm install
shell: bash

# Linting
- name: Lint Client
run: npm run lint
run: npx eslint src/
working-directory: ./client

# Tests with Coverage
- name: Run Client Tests with Coverage
run: npx vitest run --coverage
working-directory: ./client

- name: Generate Prisma Client
run: npx prisma generate
working-directory: ./server

- name: Setup Server Test Database
run: npx prisma db push --skip-generate
working-directory: ./server
Expand All @@ -53,32 +63,35 @@ jobs:
run: npm run build
working-directory: ./client

# Upload Coverage Artifacts
# Upload Coverage Artifacts (only from Ubuntu to avoid duplicates)
- name: Upload Client Coverage
if: always()
if: always() && matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v4
with:
name: client-coverage
path: client/coverage/

- name: Upload Server Coverage
if: always()
if: always() && matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v4
with:
name: server-coverage
path: server/coverage/

# Security Audit
# Security Audit (only from Ubuntu to avoid duplicates)
- name: Security Audit (Root)
if: matrix.os == 'ubuntu-latest'
run: npm audit --audit-level=high
continue-on-error: true

- name: Security Audit (Client)
if: matrix.os == 'ubuntu-latest'
run: npm audit --audit-level=high
working-directory: ./client
continue-on-error: true

- name: Security Audit (Server)
if: matrix.os == 'ubuntu-latest'
run: npm audit --audit-level=high
working-directory: ./server
continue-on-error: true
Loading