-
Notifications
You must be signed in to change notification settings - Fork 31
67 lines (65 loc) · 2.06 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Tests
on:
pull_request:
push:
branches:
- master
- develop
- release-*
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3
- uses: actions/setup-node@v4
with:
node-version: 20
# 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: gem install bundler
- 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:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3
- uses: actions/setup-node@v4
with:
node-version: 20
- run: gem install bundler
- run: rake bootstrap
- run: bash scripts/print_license.sh