Skip to content

Commit

Permalink
chore(ci): make validate-docs-links required (#53123)
Browse files Browse the repository at this point in the history
This moves the [validate-docs-links.yml](https://github.com/vercel/next.js/blob/canary/.github/workflows/validate-docs-links.yml) file into the [build_and_test.yml](https://github.com/vercel/next.js/blob/canary/.github/workflows/build_and_test.yml) file so we can mark it as required by using the `needs` property.
  • Loading branch information
styfle authored Jul 24, 2023
1 parent 4558fac commit 8729550
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 17 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,18 @@ jobs:
afterBuild: pnpm lint-no-typescript && pnpm check-examples
secrets: inherit

validate-docs-links:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: 'Run link checker'
run: node ./.github/actions/validate-docs-links/lib
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

check-types-precompiled:
name: types and precompiled
needs: ['build-native', 'build-next']
Expand Down Expand Up @@ -220,6 +232,7 @@ jobs:
'build-native',
'build-next',
'lint',
'validate-docs-links',
'check-types-precompiled',
'test-dev',
'test-prod',
Expand Down
17 changes: 0 additions & 17 deletions .github/workflows/validate-docs-links.yml

This file was deleted.

0 comments on commit 8729550

Please sign in to comment.