Skip to content

Commit 4165d31

Browse files
bpmctKatie Horne
andauthored
check for 404s and 500s on previews (coder#601)
* chore: add shared security responsibility doc * add docs 404 check * install dependencies * Revert "Merge remote-tracking branch 'origin/katiehorne/ch14532' into bpmct/detect-docs-404" This reverts commit 9cecf22, reversing changes made to 532c1b8. Co-authored-by: Katie Horne <katie@coder.com>
1 parent 8c8730f commit 4165d31

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/preview.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,16 @@ jobs:
6161
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
6262
CODER_DOCS_MAIN_BRANCH: ${{ github.event.pull_request.head.sha }}
6363

64+
# This ensures the docs site is built properly
65+
# as it will sometimes throw a 404 or 500
66+
# error if Markdown/parsing errors are present
67+
- name: Install node_modules
68+
run: yarn install
69+
- name: Check docs
70+
run: yarn ts-node ./product/coder.com/site/scripts/checkDocs.ts
71+
env:
72+
BASE_URL: ${{ steps.preview.outputs.url }}
73+
6474
- name: Update Deployment
6575
# If we don't specify always, it won't run this check if failed.
6676
# This means the deployment would be stuck pending.

0 commit comments

Comments
 (0)