Skip to content

fix(worker): serve /api/status/summary as a projection of the service… #66

fix(worker): serve /api/status/summary as a projection of the service…

fix(worker): serve /api/status/summary as a projection of the service… #66

Workflow file for this run

name: Worker tests
# Runs the Cloudflare Worker test suite (worker/src/**/*.test.ts, 4000+ tests)
# on every push to main that touches worker/**, plus manual dispatch. The
# deploy-worker workflow ships the Worker on the same trigger but does not run
# the tests, so this is the only CI signal on Worker test health. It runs
# alongside the deploy rather than gating it, so a red here flags a regression
# to investigate without freezing an unrelated deploy.
#
# Locally: cd worker && npm test
on:
push:
branches: [main]
paths:
- 'worker/**'
- '.github/workflows/worker-tests.yml'
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
if: ${{ github.repository == 'RipperMercs/tensorfeed' }}
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '24'
cache: 'npm'
cache-dependency-path: worker/package-lock.json
- name: Install dependencies
working-directory: worker
run: npm install
# VITEST_SKIP_LIVE=1 skips the handful of live-network smoke tests
# (worker/src/x402-index/live.test.ts) that hit Base mainnet RPC and the
# live tensorfeed.ai manifest. Those verify external infrastructure, not
# Worker code, so a transient RPC hiccup should not paint this signal red.
# They still run by default on a developer's local `npm test`.
- name: Run tests
working-directory: worker
run: npm test
env:
VITEST_SKIP_LIVE: '1'