History

ci: skip E2E (stdio MCP) on pull_request; scope marketing lint override to .ts (#1220)

The local E2E scenario boots a real executor web plus a browser and is currently flaky on PRs, so gate it to push events (still runs on main). The marketing app is plain Astro/Cloudflare SSR, not Effect domain code, but its lib/*.ts files were subject to the Effect-only lint rules (no-try-catch-or-throw, no-promise-catch), breaking lint on main after the GitHub stars pill landed. Extend the existing marketing override from *.astro to *.{astro,ts,tsx} and disable no-promise-catch there too.

Rhys Sullivan committed 4 months ago

Commit 7c47b031 parent bb0a02b2 files · +5 −1Browse files

Unified · Split

2 files
  1. .github/workflows/ci.yml +3 −0
  2. .oxlintrc.jsonc +2 −1
.github/workflows/ci.yml+3−0
@@ -76,6 +76,9 @@ jobs: · 75 unmodified lines
76 76
77 e2e-local:77 e2e-local:
78 name: E2E (stdio MCP)78 name: E2E (stdio MCP)
79 # Skipped on pull_request: the local scenario boots a real `executor web`
80 # plus a browser and is currently flaky on PRs. Still runs on push to main.
81 if: github.event_name != 'pull_request'
79 runs-on: ubuntu-latest82 runs-on: ubuntu-latest
80 steps:83 steps:
81 - uses: actions/checkout@v484 - uses: actions/checkout@v4
.oxlintrc.jsonc+2−1
@@ -101,12 +101,13 @@ · 100 unmodified lines
101 },101 },
102 },102 },
103 {103 {
104 "files": ["apps/marketing/src/**/*.astro"],104 "files": ["apps/marketing/src/**/*.{astro,ts,tsx}"],
105 "rules": {105 "rules": {
106 "executor/no-effect-escape-hatch": "off",106 "executor/no-effect-escape-hatch": "off",
107 "executor/no-error-constructor": "off",107 "executor/no-error-constructor": "off",
108 "executor/no-instanceof-error": "off",108 "executor/no-instanceof-error": "off",
109 "executor/no-json-parse": "off",109 "executor/no-json-parse": "off",
110 "executor/no-promise-catch": "off",
110 "executor/no-try-catch-or-throw": "off",111 "executor/no-try-catch-or-throw": "off",
111 "executor/no-unknown-error-message": "off",112 "executor/no-unknown-error-message": "off",
112 },113 },