fix(dashboard): streak inflated by skipping inactive days #61
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [22] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build all packages | |
| run: npm run build | |
| - name: Check TypeScript strict (no any) | |
| run: | | |
| count=$(grep -rn ": any\b" packages/*/src/*.ts 2>/dev/null | grep -v "node_modules" | wc -l) | |
| if [ "$count" -gt 0 ]; then | |
| echo "::warning::Found $count ': any' usages in source files" | |
| grep -rn ": any\b" packages/*/src/*.ts 2>/dev/null | grep -v "node_modules" | head -20 | |
| fi | |
| test-governance: | |
| name: Test — Governance | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - run: npm ci | |
| - run: npm run build -w packages/openclaw-governance | |
| - name: Run tests | |
| run: npm test -w packages/openclaw-governance | |
| test-brainplex: | |
| name: Test — Brainplex | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - run: npm ci | |
| - run: npm run build -w packages/brainplex | |
| - name: Run tests | |
| run: npm test -w packages/brainplex | |
| test-cortex: | |
| name: Test — Cortex | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - run: npm ci | |
| - run: npm run build -w packages/openclaw-cortex | |
| - name: Run tests | |
| run: npm test -w packages/openclaw-cortex | |
| test-knowledge-engine: | |
| name: Test — Knowledge Engine | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - run: npm ci | |
| - run: npm run build -w packages/openclaw-knowledge-engine | |
| - name: Run tests | |
| run: npm test -w packages/openclaw-knowledge-engine | |
| test-nats-eventstore: | |
| name: Test — NATS EventStore | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - run: npm ci | |
| - run: npm run build -w packages/openclaw-nats-eventstore | |
| - name: Run tests | |
| run: npm test -w packages/openclaw-nats-eventstore | |
| security: | |
| name: Security Audit | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - run: npm ci | |
| - name: npm audit | |
| run: npm audit --omit=dev || true |