Files
hextra/.github/workflows/accessibility.yml
Xin 8421201672 chore: bump Hugo, Go, and Node.js to latest versions
- Hugo: 0.147.7 → 0.156.0
- Go: 1.24 → 1.26 (CI workflows and go.mod files)
- Node.js: 22 → 24 (LTS) in accessibility workflow
2026-02-20 20:40:28 +00:00

63 lines
1.4 KiB
YAML

name: Accessibility Tests
on:
pull_request:
branches: [main]
concurrency:
group: accessibility-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
defaults:
run:
shell: bash
jobs:
a11y:
runs-on: ubuntu-latest
environment: accessibility
env:
HUGO_VERSION: 0.156.0
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.26"
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "24"
cache: npm
- name: Setup Hugo
run: |
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
- name: Install dependencies
run: npm ci
- name: Install Playwright Chromium
run: npx playwright install chromium
- name: Build site
run: npm run build
- name: Run accessibility tests
run: npm run test:a11y
- name: Upload report
if: always()
uses: actions/upload-artifact@v4
with:
name: accessibility-report
path: playwright-report/
retention-days: 14