forked from dequelabs/axe-core-gems
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
119 lines (110 loc) · 3.2 KB
/
config.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
version: 2.1
defaults: &defaults
docker:
- image: cimg/ruby:2.7.5-browsers
working_directory: ~/axe-core-gems
orbs:
browser-tools: circleci/[email protected]
node: circleci/[email protected]
commands:
bootstrap:
description: Install dependencies and bootstrap packages
steps:
- checkout
- browser-tools/install-browser-tools:
chrome-version: 126.0.6478.182
replace-existing-chrome: true
- node/install:
node-version: "16.13"
- run: gem install bundler # setup bundler
- run: rake bootstrap # bootstrap packages
jobs:
test:
<<: *defaults
steps:
- 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
canary_release:
<<: *defaults
steps:
- bootstrap
- run: bash .circleci/publish.sh pre.$(git rev-parse --short HEAD)
production_release:
<<: *defaults
steps:
- bootstrap
- run: bash .circleci/publish.sh
github_release:
docker:
- image: cimg/go:1.17.1
steps:
- checkout
- run: go get gopkg.in/aktau/github-release.v0
- run:
name: Download and run GitHub release script
command: |
curl https://raw.githubusercontent.com/dequelabs/attest-release-scripts/develop/src/ruby-github-release.sh -s -o ./ruby-github-release.sh
chmod +x ./ruby-github-release.sh
./ruby-github-release.sh
check_license:
<<: *defaults
steps:
- checkout
- node/install:
node-version: "16.13"
- bootstrap
- run: bash .circleci/print_license.sh
workflows:
version: 2
build:
jobs:
- test
- check_license:
context: html-tools
- canary_release:
requires:
- test
filters:
branches:
only:
- develop
- release
- production_release:
requires:
- test
filters:
branches:
only: master
- github_release:
requires:
- production_release
filters:
branches:
only: master