add Sloan Sustainability Grant post #168
Workflow file for this run
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 Build Check | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened, closed] | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| concurrency: | |
| group: pr-preview-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-and-check: | |
| if: github.event.action != 'closed' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| # Pinned: Node 24.17.0 regressed reading gzipped HTTP responses, | |
| # which breaks pa11y-ci's sitemap fetch in `make a11y` (node-fetch | |
| # "Premature close"). 24.16.0 is the last good version. Revisit the | |
| # pin once a fixed Node 24.x ships. | |
| node-version: 24.16.0 | |
| cache: npm | |
| # Puppeteer's own Chrome download is unreliable on the runner (it lands only | |
| # partially, or the install no-ops), so skip it everywhere... | |
| - run: npm ci | |
| env: | |
| PUPPETEER_SKIP_DOWNLOAD: "true" | |
| # ...and point pa11y/Puppeteer at the Chrome the ubuntu image already ships. | |
| - name: Point Puppeteer at the runner's system Chrome | |
| run: | | |
| CHROME="$(command -v google-chrome || command -v google-chrome-stable || command -v chromium-browser || true)" | |
| echo "Using Chrome at: ${CHROME:-<none found>}" | |
| test -n "$CHROME" | |
| "$CHROME" --version | |
| echo "PUPPETEER_EXECUTABLE_PATH=$CHROME" >> "$GITHUB_ENV" | |
| - run: make check | |
| env: | |
| PUPPETEER_SKIP_DOWNLOAD: "true" |