Skip to content

Commit

Permalink
selenium
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-siek committed Feb 6, 2024
1 parent 739ed29 commit 5ad2e69
Showing 1 changed file with 28 additions and 29 deletions.
57 changes: 28 additions & 29 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,19 @@ on:
- release-*

jobs:
tests:
license-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.5
- uses: actions/setup-node@v4
with:
node-version: 20
- run: rake bootstrap
- run: bash .github/scripts/print_license.sh
api:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -20,50 +32,37 @@ jobs:
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.5
bundler-cache: true
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
# HACK: Force a TTY to enable browser-driver-manager to manipulate stdout.
- shell: 'script -q -e -c "bash {0}"'
run: npx browser-driver-manager install chromedriver --verbose
- run: rake bootstrap
# unit test - API
- run: rake test_unit\[axe-core-api\]
# unit test - webdrivers
- run: rake test_unit\[axe-core-selenium\]
- run: rake test_unit\[axe-core-watir\]
- run: rake test_unit\[axe-core-capybara\]
# unit test - framework integrations
- run: rake test_unit\[axe-core-cucumber\]
- run: rake test_unit\[axe-core-rspec\]
# e2e test - rspec -> capybara
- run: |
cd packages/axe-core-rspec && cd e2e/capybara
bundle install && bundle exec rspec
# e2e test - cucumber -> capybara
- run: |
cd packages/axe-core-cucumber && cd e2e/capybara
bundle install && bundle exec cucumber
# e2e test - cucumber -> watir
- run: |
cd packages/axe-core-cucumber && cd e2e/watir
bundle install && bundle exec cucumber
# e2e test - selenium, axe 4.3.x
- run: |
npm i
cd node_modules/axe-test-fixtures/fixtures && python3 -m http.server &
sleep 1 # Just wait a bit for the http server to startup
cd packages/axe-core-api/e2e/selenium
bundle install && bundle exec rspec
license-check:

selenium:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: browser-actions/setup-firefox@v1
- uses: browser-actions/setup-geckodriver@latest
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.5
bundler-cache: true
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
# HACK: Force a TTY to enable browser-driver-manager to manipulate stdout.
- shell: 'script -q -e -c "bash {0}"'
run: npx browser-driver-manager install chromedriver --verbose
- run: rake bootstrap
- run: bash .github/scripts/print_license.sh
# unit test - API
- run: rake test_unit\[axe-core-selenium\]

0 comments on commit 5ad2e69

Please sign in to comment.