Skip to content

Implement Firestore security rules #3

Implement Firestore security rules

Implement Firestore security rules #3

Workflow file for this run

name: CI/CD Pipeline
on:
push:
branches: [ main, develop, staging ]
pull_request:
branches: [ main, develop ]
jobs:
lint-and-type-check:
runs-on: ubuntu-latest
name: Lint & Type Check
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run ESLint
run: npm run lint || echo "Linting will be configured soon"
- name: Type checking
run: npm run type-check || npm run typecheck || echo "Type checking will be configured soon"
build:
runs-on: ubuntu-latest
name: Build Application
needs: lint-and-type-check
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build application
run: npm run build
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: build-files
path: dist/
security-audit:
runs-on: ubuntu-latest
name: Security Audit
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run security audit
run: npm audit --audit-level=high
# Uncomment when tests are implemented
# test:
# runs-on: ubuntu-latest
# name: Run Tests
#
# steps:
# - uses: actions/checkout@v4
#
# - name: Setup Node.js
# uses: actions/setup-node@v4
# with:
# node-version: '18'
# cache: 'npm'
#
# - name: Install dependencies
# run: npm ci
#
# - name: Run tests
# run: npm test