Unverified Commit 87295505 authored by Steven's avatar Steven Committed by GitHub

chore(ci): make `validate-docs-links` required (#53123)

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.
parent 4558fac2
......@@ -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']
......@@ -220,6 +232,7 @@ jobs:
'build-native',
'build-next',
'lint',
'validate-docs-links',
'check-types-precompiled',
'test-dev',
'test-prod',
......
name: 'Validate Doc Links'
on:
pull_request:
types: [opened, synchronize]
jobs:
link-check:
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 }}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment