Skip to content

Commit

Permalink
fix commands
Browse files Browse the repository at this point in the history
  • Loading branch information
a-hariti committed Jul 24, 2024
1 parent 42cfb65 commit e2de7a3
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/lint-404s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,15 @@ jobs:
- run: yarn build:developer-docs
if: steps.filter.outputs.dev-docs == 'true'

# bun seems to be the most straightforward way to run a TypeScript script
# without introducing another dependency like ts-node or tsx for everyone else
- name: Start Http Server
run: yarn start &
if: steps.filter.outputs.docs == 'true' || steps.filter.outputs.dev-docs == 'true'

- name: Lint 404s
run: bun ./scripts/lint-404s/main.ts
if: steps.filter.outputs.docs == 'true' || steps.filter.outputs.dev-docs == 'true'

# build docs index
- run: yarn start & bun ./scripts/lint-404s/main.ts
- 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

0 comments on commit e2de7a3

Please sign in to comment.