Fix attempt for prod issue #16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CodeCleanse CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '22' | |
cache: 'npm' # Cache npm dependencies for faster builds | |
- name: Install dependencies | |
run: npm ci # For clean, reproducible installs in CI | |
- name: Run linters | |
run: npm run lint # Assumes your lint script is configured | |
- name: Run tests | |
run: npm run test -- --run # Use '--run' to prevent Vitest watch mode in CI | |
- name: Build check | |
run: npm run build # Ensure the project builds successfully |