# Gitea Actions CI for wbxcallprov. # # Runs on every push and PR against main. Matches the runtime image: # node:20-alpine in Dockerfile -> node-version: 20 here. # # The three checks are the same ones a developer runs locally before pushing: # npm run lint - ESLint flat config, catches unused vars / var / == # npm run format:check - Prettier drift detection (writes are separate) # npm test - node --test suite for pure-logic functions # # Tests never hit the network; dummy env vars come from test/setup.js. name: CI on: push: branches: [main] pull_request: branches: [main] jobs: verify: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 - name: Set up Node 20 uses: actions/setup-node@v4 with: node-version: '20' cache: 'npm' - name: Install dependencies run: npm ci - name: Lint run: npm run lint - name: Format check run: npm run format:check - name: Test run: npm test