Skip to content

feat: add endpoint to fetch open DEX offers for an account #291 #139

feat: add endpoint to fetch open DEX offers for an account #291

feat: add endpoint to fetch open DEX offers for an account #291 #139

name: Accessibility Testing
on:
push:
branches: [main, 'feature/**']
pull_request:
branches: [main]
jobs:
accessibility-tests:
name: Accessibility Audit & Regression
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run accessibility tests
run: npx vitest run frontend/tests/accessibility-automation.test.jsx --reporter=verbose
env:
NODE_ENV: test
- name: Upload accessibility report
if: always()
uses: actions/upload-artifact@v4
with:
name: accessibility-report-${{ github.sha }}
path: test-reports/
retention-days: 14
- name: Comment PR on accessibility failure
if: failure() && github.event_name == 'pull_request'
uses: actions/github-script@v7
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '♿ **Accessibility regression detected.** Review the `accessibility-report` artifact for WCAG violations introduced by this PR.'
})