From 6c6446fc97df71f992c2053bf4c3ad6159e766b0 Mon Sep 17 00:00:00 2001 From: Bruno Quaresma Date: Thu, 26 Aug 2021 16:24:43 -0300 Subject: [PATCH] Add check docs (#4047) --- .github/workflows/docs-preview.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/docs-preview.yaml b/.github/workflows/docs-preview.yaml index 847172bf3..3f4ed05ce 100644 --- a/.github/workflows/docs-preview.yaml +++ b/.github/workflows/docs-preview.yaml @@ -61,6 +61,14 @@ jobs: VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} CODE_SERVER_DOCS_MAIN_BRANCH: ${{ github.event.pull_request.head.sha }} + - name: Install node_modules + run: yarn install + + - name: Check docs + run: yarn ts-node ./product/coder.com/site/scripts/checkDocs.ts + env: + BASE_URL: ${{ steps.preview.outputs.url }} + - name: Update Deployment # If we don't specify always, it won't run this check if failed. # This means the deployment would be stuck pending.