Update dependencies #210
Workflow file for this run
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: Accessibility scan | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
scan-action: | |
runs-on: ubuntu-latest | |
name: Scan for accessibility issues | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
# This action requires Node 20 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Scan site | |
id: scan | |
uses: ./ | |
with: | |
# Required: | |
url: "https://www.washington.edu/accesscomputing/AU/before.html" | |
# Optional: | |
baselineFile: ${{ github.workspace }}/samples/site.baseline | |
# Optional: upload the report as an artifact | |
- name: Upload report as artifact | |
uses: actions/upload-artifact@v4 | |
if: success() || failure() | |
with: | |
name: "Accessibility report" | |
path: ${{ github.workspace }}/_accessibility-reports/index.html | |
# Optional: post a comment on the pull request with the summary report | |
- uses: actions/github-script@v3 | |
if: github.event_name == 'pull_request' | |
with: | |
github-token: ${{secrets.GITHUB_TOKEN}} | |
script: | | |
github.issues.createComment({ | |
issue_number: context.issue.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
body: `${{ steps.scan.outputs['summary-report'] }}` | |
}) |