Skip to content

fix: robust model-label derivation + refresh offline pricing fallback #127

fix: robust model-label derivation + refresh offline pricing fallback

fix: robust model-label derivation + refresh offline pricing fallback #127

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- run: npm ci --ignore-scripts
- run: npm run lint
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20, 22]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
- run: npm ci
- run: npm test
- name: Upload coverage
if: matrix.node-version == 20
uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage/
build-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- run: npm ci
- name: Smoke test - server starts
run: |
timeout 5 node -e "
const { initDB } = require('./lib/db');
initDB();
console.log('DB initialized OK');
const Aggregator = require('./lib/aggregator');
const agg = new Aggregator();
console.log('Aggregator OK');
process.exit(0);
" || true