Skip to content

ref: remove old sentry logs to error handler documentation #18419

ref: remove old sentry logs to error handler documentation

ref: remove old sentry logs to error handler documentation #18419

Workflow file for this run

name: Lint Docs for 404s
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
lint-404:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: pnpm/action-setup@02f6c237bd2518259fed6c71566509edfb3f2b74 # v4
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v4
id: setup-node
with:
node-version-file: 'package.json'
cache: 'pnpm'
- uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1
id: filter
with:
filters: |
docs:
- 'docs/**'
- 'includes/**'
- 'platform-includes/**'
- 'scripts/lint-404s/**'
dev-docs:
- 'develop-docs/**'
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: latest
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
with:
path: |
${{ github.workspace }}/.next/cache
key: nextjs-${{ runner.os }}-${{ steps.setup-node.outputs.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
nextjs-${{ runner.os }}-${{ steps.setup-node.outputs.node-version }}-
- run: pnpm install --frozen-lockfile
- run: pnpm build
if: steps.filter.outputs.docs == 'true'
env:
SENTRY_DSN: https://examplePublicKey@o0.ingest.sentry.io/0
NEXT_PUBLIC_SENTRY_DSN: https://examplePublicKey@o0.ingest.sentry.io/0
- run: pnpm build:developer-docs
if: steps.filter.outputs.dev-docs == 'true'
env:
SENTRY_DSN: https://examplePublicKey@o0.ingest.sentry.io/0
NEXT_PUBLIC_SENTRY_DSN: https://examplePublicKey@o0.ingest.sentry.io/0
- name: Start Http Server
run: pnpm start &
if: steps.filter.outputs.docs == 'true' || steps.filter.outputs.dev-docs == 'true'
env:
SENTRY_DSN: https://examplePublicKey@o0.ingest.sentry.io/0
NEXT_PUBLIC_SENTRY_DSN: https://examplePublicKey@o0.ingest.sentry.io/0
- name: Lint 404s
run: bun ./scripts/lint-404s/main.ts
if: steps.filter.outputs.docs == 'true' || steps.filter.outputs.dev-docs == 'true'
- name: Kill Http Server
run: kill $(lsof -t -i:3000) || true
if: steps.filter.outputs.docs == 'true' || steps.filter.outputs.dev-docs == 'true'
continue-on-error: true