Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ concurrency:
jobs:
quality:
runs-on: ubuntu-latest
env:
FAILPROOFAI_TELEMETRY_DISABLED: "1"
steps:
- uses: actions/checkout@v6

Expand Down Expand Up @@ -79,11 +81,12 @@ jobs:
fail-fast: false
matrix:
env-config:
- { name: default, env: {} }
- { name: telemetry-disabled, env: { FAILPROOFAI_TELEMETRY_DISABLED: "1" } }
- { name: log-debug, env: { FAILPROOFAI_LOG_LEVEL: debug } }
- { name: hook-log-file, env: { FAILPROOFAI_HOOK_LOG_FILE: "1" } }
env: ${{ matrix.env-config.env }}
- { name: default, env: {} }
- { name: log-debug, env: { FAILPROOFAI_LOG_LEVEL: debug } }
- { name: hook-log-file, env: { FAILPROOFAI_HOOK_LOG_FILE: "1" } }
env:
FAILPROOFAI_TELEMETRY_DISABLED: "1"
NEXT_TELEMETRY_DISABLED: "1"
steps:
- uses: actions/checkout@v6

Expand All @@ -106,13 +109,17 @@ jobs:

- name: Test (${{ matrix.env-config.name }})
uses: nick-fields/retry@v4
env: ${{ matrix.env-config.env }}
with:
max_attempts: 3
timeout_minutes: 10
command: bun run test:run

build:
runs-on: ubuntu-latest
env:
FAILPROOFAI_TELEMETRY_DISABLED: "1"
NEXT_TELEMETRY_DISABLED: "1"
steps:
- uses: actions/checkout@v6

Expand Down Expand Up @@ -144,6 +151,7 @@ jobs:
runs-on: ubuntu-latest
env:
FAILPROOFAI_TELEMETRY_DISABLED: "1"
NEXT_TELEMETRY_DISABLED: "1"
steps:
- uses: actions/checkout@v6

Expand Down
3 changes: 3 additions & 0 deletions vitest.config.e2e.mts
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,8 @@ export default defineConfig({
// forks pool: true process isolation — tests spawn subprocesses,
// thread workers share globalThis which can interfere.
pool: "forks",
env: {
FAILPROOFAI_TELEMETRY_DISABLED: "1",
},
},
});
3 changes: 3 additions & 0 deletions vitest.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,8 @@ export default defineConfig({
include: ["__tests__/**/*.test.{ts,tsx}"],
exclude: ["__tests__/e2e/**"],
css: false,
env: {
FAILPROOFAI_TELEMETRY_DISABLED: "1",
},
},
});