diff --git a/.github/workflows/scan.yml b/.github/workflows/scan.yml new file mode 100644 index 000000000..316e56421 --- /dev/null +++ b/.github/workflows/scan.yml @@ -0,0 +1,31 @@ +name: Scan for accessibility + +on: + pull_request: + branches: [latest, develop, release-*] + +defaults: + run: + shell: bash + +jobs: + scan: + runs-on: ubuntu-latest + + steps: + - name: checkout + uses: actions/checkout@v3 + + - name: Setup ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: '3.3' + bundler-cache: true + + - name: Make Html + run: | + rake build + + - name: Scan for accessibility + run: | + rake scan diff --git a/.pa11yci b/.pa11yci new file mode 100644 index 000000000..485b8e225 --- /dev/null +++ b/.pa11yci @@ -0,0 +1,7 @@ +{ + "defaults": { + "chromeLaunchConfig": { + "args": ["--no-sandbox"] + } + } +} \ No newline at end of file diff --git a/Rakefile b/Rakefile index 8a425ca3a..bed95c343 100644 --- a/Rakefile +++ b/Rakefile @@ -20,6 +20,11 @@ task :spellcheck do exec "#{run_cmd} make spellcheck" end +desc "scan for accessibility" +task :scan do + exec "#{run_cmd} pa11y-ci /doc/build/html/**/*.html" +end + desc "Open built documentation in browser" task :open do if windows?