Skip to content

Added step definitions and cucumber scenarios for UI changes of reque… #723

Added step definitions and cucumber scenarios for UI changes of reque…

Added step definitions and cucumber scenarios for UI changes of reque… #723

Workflow file for this run

# .github/workflows/a11y.yml
name: Accessibility Tests
on:
push:
pull_request:
workflow_dispatch:
jobs:
a11y_test:

Check failure on line 10 in .github/workflows/a11y.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/a11y.yml

Invalid workflow file

You have an error in your yaml syntax on line 10
runs-on: ubuntu-latest
services:
postgres:
image: postgres:17
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
ports:
- 5432:5432
options: --health-cmd="pg_isready" --health-interval=10s --health-timeout=5s --health-retries=3
env:
# Do not install production/staging-only gems in test environment
BUNDLE_WITHOUT: "production staging"
DB_HOST: localhost
DB_USER: postgres
DB_PASSWORD: password
CANVAS_URL: http://bcourses.test.instructure.com/
steps:
- name: Install packages
run: sudo apt-get update && sudo apt-get install --no-install-recommends -y google-chrome-stable
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: .tool-versions
bundler-cache: true
- name: Set up Database
run: bundle exec rails db:setup
- name: Create separate Chrome data directories
run: |
mkdir -p /tmp/chrome-data-rspec
- name: Run RSpec Accessibility Tests
run: bundle exec rspec spec/ --tag a11y
env:
CHROME_DATA_DIR: /tmp/chrome-data-rspec
- name: Upload Screenshot
uses: actions/upload-artifact@v2
with:
name: screenshot
path: /tmp/chrome-data-rspec/screenshots