summary: end-to-end go / no-go on top, query latency per tier at the bottom #167
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: PR preview | |
| # Deploy each PR's docs/ to gh-pages:/pr-preview/pr-<number>/ and comment the | |
| # preview URL on the PR. The preview is deleted when the PR closes. | |
| # Runs on every PR (no paths filter): the close-time cleanup must always fire, | |
| # and deploying an unchanged docs/ is harmless. PRs from forks are not | |
| # previewed — their GITHUB_TOKEN is read-only. | |
| on: | |
| pull_request: | |
| types: [opened, reopened, synchronize, closed] | |
| concurrency: preview-${{ github.ref }} | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| preview: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Cache-bust viewer assets | |
| # Same script as deploy-pages.yml, so a preview stamps the same asset set | |
| # a deploy does. Matters more here: the preview URL is constant across | |
| # pushes to a PR, so without it a browser keeps serving the cached assets | |
| # while you iterate. Harmless on the close event (nothing is deployed then). | |
| run: .github/scripts/cache-bust.sh | |
| - name: Deploy preview | |
| uses: rossjrw/pr-preview-action@v1 | |
| with: | |
| source-dir: docs |