Add more test cases #6
  
    
      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
    
  
  
    
  | on: | |
| push: | |
| branches: | |
| - main | |
| - test-pa11y | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| pa11y: | |
| name: test on ${{ matrix.os }} with node ${{ matrix.node-version }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest] | |
| node-version: [22] | |
| steps: | |
| - name: Disable AppArmor User Namespace Restrictions, required to open | |
| Chrome on Ubuntu 23.10+ without --no-sandbox). See | |
| https://chromium.googlesource.com/chromium/src/+/main/docs/security/apparmor-userns-restrictions.md. | |
| run: echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns | |
| if: runner.os == 'Linux' | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - run: npm install -g pa11y-ci | |
| - run: 'pa11y-ci https://pa11y.org https://pa11y.test || echo "exit code: $?" && echo "exit code: $?"' | |
| - run: 'pa11y-ci -T 2 https://pa11y.org https://pa11y.test || echo "exit code: $?" && echo "exit code: $?"' | |
| - run: 'pa11y-ci -T 20 https://pa11y.org https://pa11y.test https://github.com || echo "exit code: $?" && echo "exit code: $?"' | |
| - run: echo '{"defaults":{"threshold":2}}' > .pa11yci | |
| - run: 'pa11y-ci -T 2 https://pa11y.org https://pa11y.test || echo "exit code: $?" && echo "exit code: $?"' | |
| - run: 'pa11y-ci -T 20 https://pa11y.org https://pa11y.test https://github.com || echo "exit code: $?" && echo "exit code: $?"' | |
| - run: echo '{"defaults":{"threshold":20}}' > .pa11yci | |
| - run: 'pa11y-ci -T 2 https://pa11y.org https://pa11y.test || echo "exit code: $?" && echo "exit code: $?"' | |
| - run: 'pa11y-ci -T 20 https://pa11y.org https://pa11y.test https://github.com || echo "exit code: $?" && echo "exit code: $?"' |