add schema generation and iterative change info to Connect to existing database page #1706
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CheckPRLinks | |
on: | |
pull_request: | |
branches: [main, next-release/main] | |
types: [opened, synchronize] | |
jobs: | |
CheckPRLinks: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 https://github.com/actions/checkout/commit/f43a0e5ff2bd294095638e18286ca9a3d1956744 | |
- name: Setup Node.js 16.x | |
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # v3.7.0 https://github.com/actions/setup-node/commit/e33196f7422957bea03ed53f6fbb155025ffc7b8 | |
with: | |
node-version: 16.x | |
- name: Install Dependencies | |
run: yarn | |
- name: Run Build | |
run: yarn build | |
env: | |
NODE_OPTIONS: --max_old_space_size=4096 | |
- name: Run Server | |
run: | | |
node ./node_modules/.bin/serve client/www/next-build --no-request-logging & | |
sleep 5 | |
- name: Run Link Checker | |
id: checkLinks | |
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 https://github.com/actions/github-script/commit/d7906e4ad0b1822421a7e6a35d5ca353c962f410 | |
with: | |
result-encoding: string | |
script: | | |
const { checkDevLinks } = require('./tasks/link-checker.js'); | |
return await checkDevLinks(); | |
- name: Fail if broken links have been found | |
if: ${{ steps.checkLinks.outputs.result }} | |
run: exit 1 |