Sha256: d9ca32f955642fa0b2bbe2e564181c9d3b5c08f5a9078ea199efc8e493a2d17c

Contents?: true

Size: 1.57 KB

Versions: 16

Compression:

Stored size: 1.57 KB

Contents

name: pa11y tests

on: [pull_request]

jobs:
  pa11y_scan:
    name: Pa11y Scan
    runs-on: ubuntu-latest
    services:
      postgres:
        image: postgres
        options: >-
          --health-cmd pg_isready
          --health-interval 10s
          --health-timeout 5s
          --health-retries 5
        ports: ["5432:5432"]
        env:
          POSTGRES_DB: <%= app_name %>_test
          POSTGRES_USER: cidbuser
          POSTGRES_PASSWORD: postgres

    steps:
      - uses: actions/checkout@v2

      - id: setup
        uses: ./.github/actions/setup-project

      - uses: ./.github/actions/run-server
        with:
          database_url: ${{ steps.setup.outputs.database_url }}

      - name: Run pa11y-ci
        shell: bash
        run: |
          set -o pipefail
          yarn run pa11y-ci 2>&1 | tee pa11y_output.txt

      - name: Read pa11y_output file.
        if: failure()
        id: pa11y_output
        uses: juliangruber/read-file-action@v1
        with:
          path: ./pa11y_output.txt

      - name: Comment on pull request
        if: failure()
        uses: actions/github-script@v4
        with:
          script: |
            const output = `Pa11y Failures detected

            <details><summary>Show failure message</summary>

            \`\`\`\n
            ${{ steps.pa11y_output.outputs.content }}
            \`\`\`
            </details>`;

            github.issues.createComment({
              issue_number: context.issue.number,
              owner: context.repo.owner,
              repo: context.repo.repo,
              body: output
            });

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
rails_template_18f-0.8.2 lib/generators/rails_template18f/github_actions/templates/github/workflows/pa11y.yml.tt
rails_template_18f-0.8.1 lib/generators/rails_template18f/github_actions/templates/github/workflows/pa11y.yml.tt
rails_template_18f-0.8.0 lib/generators/rails_template18f/github_actions/templates/github/workflows/pa11y.yml.tt
rails_template_18f-0.7.2 lib/generators/rails_template18f/github_actions/templates/github/workflows/pa11y.yml.tt
rails_template_18f-0.7.1 lib/generators/rails_template18f/github_actions/templates/github/workflows/pa11y.yml.tt
rails_template_18f-0.7.0 lib/generators/rails_template18f/github_actions/templates/github/workflows/pa11y.yml.tt
rails_template_18f-0.6.0 lib/generators/rails_template18f/github_actions/templates/github/workflows/pa11y.yml.tt
rails_template_18f-0.5.3 lib/generators/rails_template18f/github_actions/templates/github/workflows/pa11y.yml.tt
rails_template_18f-0.5.2 lib/generators/rails_template18f/github_actions/templates/github/workflows/pa11y.yml.tt
rails_template_18f-0.5.1 lib/generators/rails_template18f/github_actions/templates/github/workflows/pa11y.yml.tt
rails_template_18f-0.5.0 lib/generators/rails_template18f/github_actions/templates/github/workflows/pa11y.yml.tt
rails_template_18f-0.4.1 lib/generators/rails_template18f/github_actions/templates/github/workflows/pa11y.yml.tt
rails_template_18f-0.4.0 lib/generators/rails_template18f/github_actions/templates/github/workflows/pa11y.yml.tt
rails_template_18f-0.3.0 lib/generators/rails_template18f/github_actions/templates/github/workflows/pa11y.yml.tt
rails_template_18f-0.2.0 lib/generators/rails_template18f/github_actions/templates/github/workflows/pa11y.yml.tt
rails_template_18f-0.1.0 lib/generators/rails_template18f/github_actions/templates/github/workflows/pa11y.yml.tt