Skip to content

Commit

Permalink
setup github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
dsinghvi committed May 5, 2024
1 parent fb2c14c commit 7662397
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .github/workflows/healthcheck.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion packages/healthchecks/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7662397

Please sign in to comment.