| 1 | name: (Runtime) Fuzz tests |
| 2 | |
| 3 | on: |
| 4 | schedule: |
| 5 | - cron: 0 * * * * |
| 6 | push: |
| 7 | branches: |
| 8 | - main |
| 9 | workflow_dispatch: |
| 10 | |
| 11 | permissions: {} |
| 12 | |
| 13 | env: |
| 14 | TZ: /usr/share/zoneinfo/America/Los_Angeles |
| 15 | |
| 16 | jobs: |
| 17 | test_fuzz: |
| 18 | runs-on: ubuntu-latest |
| 19 | steps: |
| 20 | - uses: actions/checkout@v4.1.0 |
| 21 | - uses: actions/setup-node@v4 |
| 22 | with: |
| 23 | node-version-file: '.nvmrc' |
| 24 | cache: 'yarn' |
| 25 | - name: Install dependencies |
| 26 | run: yarn install --frozen-lockfile |
| 27 | env: |
| 28 | ELECTRON_SKIP_BINARY_DOWNLOAD: "1" |
| 29 | shell: bash |
| 30 | - name: Run fuzz tests |
| 31 | run: |- |
| 32 | FUZZ_TEST_SEED=$RANDOM yarn test fuzz --ci |
| 33 | FUZZ_TEST_SEED=$RANDOM yarn test --prod fuzz --ci |