Merge pull request #248 from bitquery/seo/robinhood-launchpad-cluster #165
This file contains hidden or 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: Docs build | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| cache: npm | |
| - run: npm ci | |
| - run: npm run build | |
| - name: Check internal links | |
| run: node scripts/check-links.mjs | |
| # nginx/default.conf ships straight into the runtime image (see Dockerfile) | |
| # and was never validated anywhere in CI. A syntax error there does not fail | |
| # the build — it fails `nginx -g daemon off;` at container start, i.e. the | |
| # docs go down on deploy. Validate it with the same nginx the image uses. | |
| - name: Validate nginx config | |
| run: | | |
| docker run --rm \ | |
| -v "$PWD/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro" \ | |
| nginx:stable-alpine nginx -t |