From 5ad2e6947d94ad8984e00d7024e93977fef0ab69 Mon Sep 17 00:00:00 2001 From: michael-siek Date: Mon, 5 Feb 2024 19:07:49 -0500 Subject: [PATCH] selenium --- .github/workflows/tests.yml | 57 ++++++++++++++++++------------------- 1 file changed, 28 insertions(+), 29 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 93dbbb22..c0fcbe9a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 @@ -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\]