Skip to content

Issue #92 fixed

Issue #92 fixed #4

Workflow file for this run

name: CI/CD Pipeline
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
lint-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: |
npm ci
cd client && npm ci
cd ../server && npm ci
- name: Run linting
run: |
npm run lint
- name: Run formatting check
run: |
npm run format:check
- name: Run tests
run: |
npm run test
- name: Build project
run: |
npm run build
- name: Upload coverage reports
uses: codecov/codecov-action@v3
with:
directory: ./coverage
flags: unittests
name: codecov-umbrella
fail_ci_if_error: false
security-audit:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'npm'
- name: Install dependencies
run: |
npm ci
cd client && npm ci
cd ../server && npm ci
- name: Run security audit
run: |
npm audit --audit-level=moderate
cd client && npm audit --audit-level=moderate
cd ../server && npm audit --audit-level=moderate