[codex] implement wave1 functional hardening #28
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: DocFX Pages | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: pages-${{ github.ref }} | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| name: Build DocFX site | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| env: | |
| PLAYWRIGHT_CHROMIUM_CHANNEL: chrome | |
| permissions: | |
| contents: read | |
| pages: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup .NET 10 | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 10.0.x | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| cache: npm | |
| cache-dependency-path: tests/web-a11y/package-lock.json | |
| - name: Setup GitHub Pages | |
| if: github.event_name != 'pull_request' | |
| uses: actions/configure-pages@v5 | |
| - name: Install DocFX | |
| shell: bash | |
| run: dotnet tool install --global docfx | |
| - name: Build DocFX site | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| export PATH="$PATH:$HOME/.dotnet/tools" | |
| docfx docfx.json | |
| - name: Install web accessibility dependencies | |
| working-directory: tests/web-a11y | |
| run: npm ci | |
| - name: Verify system Chrome | |
| run: google-chrome --version | |
| - name: Run DocFX accessibility smoke tests | |
| working-directory: tests/web-a11y | |
| run: npm test | |
| - name: Upload GitHub Pages artifact | |
| if: github.event_name != 'pull_request' | |
| uses: actions/upload-pages-artifact@v4 | |
| with: | |
| path: _site | |
| deploy: | |
| name: Deploy DocFX site | |
| if: github.event_name != 'pull_request' | |
| runs-on: ubuntu-latest | |
| needs: build | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |