E2E #131
This file contains 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: E2E | |
on: [deployment_status] | |
jobs: | |
accessibility: | |
if: github.event.deployment_status.state == 'success' | |
runs-on: ubuntu-22.04 | |
permissions: | |
checks: read | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v4 | |
name: Checkout configuration file | |
with: | |
sparse-checkout: | | |
.pa11yci.json | |
sparse-checkout-cone-mode: false | |
- name: Log Deployment Status | |
run: echo "Deployment URL- ${{ github.event.deployment_status.environment_url }}" | |
- name: Enable unprivileged user namespaces | |
run: sudo sysctl kernel.unprivileged_userns_clone=1 | |
shell: bash | |
- uses: narthur/pa11y-ratchet@v2 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
sitemap-url: ${{ github.event.deployment_status.environment_url }}/sitemap-0.xml | |
find: https://blog.beeminder.com | |
replace: ${{ github.event.deployment_status.environment_url }} | |
config-path: .pa11yci.json |