diff --git a/.github/workflows/healthcheck.yml b/.github/workflows/healthcheck.yml new file mode 100644 index 0000000000..f04e7c815f --- /dev/null +++ b/.github/workflows/healthcheck.yml @@ -0,0 +1,36 @@ +name: Docs Healthchecks + +on: + push: + branches: + - dsinghvi/incident-2024-05-05-404-checking + workflow_call: + workflow_dispatch: + schedule: + - cron: 1 */6 * * * + +env: + TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} + TURBO_TEAM: "buildwithfern" + VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} + +jobs: + run: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: 📥 Install + uses: ./.github/actions/install + + - name: 🧪 Build Healthchecks CLI + run: | + pnpm --filter=@fern-api/healthchecks dist:cli + + - name: Run Healthchecks + env: + NPM_TOKEN: ${{ secrets.FERN_NPM_TOKEN }} + run: | + node packages/healthchecks/dist/cli.cjs run docs diff --git a/packages/healthchecks/src/cli.ts b/packages/healthchecks/src/cli.ts index 9088dc880e..9fa65a6745 100644 --- a/packages/healthchecks/src/cli.ts +++ b/packages/healthchecks/src/cli.ts @@ -8,7 +8,7 @@ void yargs(hideBin(process.argv)) .scriptName(process.env.CLI_NAME ?? "fern-healthchecks") .strict() .command( - "run", + "docs run", "Run healthchecks on a deployed docs website", (argv) => argv