Skip to content
Source
Sign inSign up
TanStack/db
Open History to see the last commit

oracle-nightly.yml

35 lines1.2 KB

1name: Nightly oracles
2​
3# Longer oracle campaigns than PR CI can afford. The generated demand
4# coverage campaign runs with ten times its PR budget, and every hostile
5# mutant in scripts/demand-coverage-mutants.mjs must fail a named test.
6on:
7 schedule:
8 - cron: '17 6 * * *'
9 workflow_dispatch:
10​
11concurrency:
12 group: ${{ github.workflow }}
13 cancel-in-progress: true
14​
15permissions:
16 contents: read
17​
18jobs:
19 demand-coverage:
20 name: Demand coverage campaigns and mutants
21 runs-on: ubuntu-latest
22 timeout-minutes: 240
23 steps:
24 - name: Checkout
25 uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
26 with:
27 persist-credentials: false
28 - name: Setup Tools
29 uses: tanstack/config/.github/setup@e4b48f16568324f76f467aa4c2aac2f05db632c3
30 - name: Run the generated campaign with a larger budget
31 env:
32 TANSTACK_DB_ORACLE_RUNS_MULTIPLIER: '10'
33 run: pnpm --filter @tanstack/db-sqlite-persistence-core exec vitest run --coverage.enabled=false tests/persisted-demand-coverage-campaign-oracle.test.ts
34 - name: Run the demand coverage mutants
35 run: node scripts/demand-coverage-mutants.mjs