From b1458681b260e8ce8675f76732d61a18a0b50c1c Mon Sep 17 00:00:00 2001 From: Victoria Nduka <122698422+nwanduka@users.noreply.github.com> Date: Fri, 12 Apr 2024 14:38:28 +0100 Subject: [PATCH 01/18] Create axe-a11y-check.yml --- .github/workflows/axe-a11y-check.yml | 38 ++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/axe-a11y-check.yml diff --git a/.github/workflows/axe-a11y-check.yml b/.github/workflows/axe-a11y-check.yml new file mode 100644 index 000000000..1158b0c21 --- /dev/null +++ b/.github/workflows/axe-a11y-check.yml @@ -0,0 +1,38 @@ +name: axe +on: + push: + branches: + - master + - develop + pull_request: + branches: + - master + - develop +jobs: + axe: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [16.x, 18.x] + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm run build --if-present + - name: Start Application + run: npm start & + - name: Wait for Application to Start + uses: jakejarvis/wait-action@master + with: + time: '30s' + interval: '3s' + condition: 'reachable' + host: 'localhost' + port: 4010 + - name: Run axe + run: | + npm install -g @axe-core/cli + axe http://localhost:4010 --exit From 5ced8b960c7a3248d06fa06456cabb76aa227cc6 Mon Sep 17 00:00:00 2001 From: Victoria Nduka <122698422+nwanduka@users.noreply.github.com> Date: Fri, 12 Apr 2024 14:45:24 +0100 Subject: [PATCH 02/18] Update axe-a11y-check.yml --- .github/workflows/axe-a11y-check.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/axe-a11y-check.yml b/.github/workflows/axe-a11y-check.yml index 1158b0c21..9acc9ac54 100644 --- a/.github/workflows/axe-a11y-check.yml +++ b/.github/workflows/axe-a11y-check.yml @@ -28,10 +28,7 @@ jobs: uses: jakejarvis/wait-action@master with: time: '30s' - interval: '3s' - condition: 'reachable' - host: 'localhost' - port: 4010 + entryPoint: 'http://localhost:4010' - name: Run axe run: | npm install -g @axe-core/cli From e6dac153acf17f76c18c6f3f6ca48928452aa42b Mon Sep 17 00:00:00 2001 From: Victoria Nduka <122698422+nwanduka@users.noreply.github.com> Date: Sun, 14 Apr 2024 19:04:38 +0100 Subject: [PATCH 03/18] Update axe-a11y-check.yml --- .github/workflows/axe-a11y-check.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/axe-a11y-check.yml b/.github/workflows/axe-a11y-check.yml index 9acc9ac54..b937e4c66 100644 --- a/.github/workflows/axe-a11y-check.yml +++ b/.github/workflows/axe-a11y-check.yml @@ -20,15 +20,14 @@ jobs: uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - - run: npm ci + - run: npm install + - run: npm install jsdom + - run: npm install -g http-server + - run: npm install -g mocha + - run: npm install eslint + - run: npm install eslint-config-google + - run: http-server -s & - run: npm run build --if-present - - name: Start Application - run: npm start & - - name: Wait for Application to Start - uses: jakejarvis/wait-action@master - with: - time: '30s' - entryPoint: 'http://localhost:4010' - name: Run axe run: | npm install -g @axe-core/cli From 618cff46b70000305dfdc5a178b4ea3eb95bfe1a Mon Sep 17 00:00:00 2001 From: Victoria Nduka <122698422+nwanduka@users.noreply.github.com> Date: Sun, 14 Apr 2024 19:23:02 +0100 Subject: [PATCH 04/18] Update axe-a11y-check.yml --- .github/workflows/axe-a11y-check.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/axe-a11y-check.yml b/.github/workflows/axe-a11y-check.yml index b937e4c66..f4481ca5d 100644 --- a/.github/workflows/axe-a11y-check.yml +++ b/.github/workflows/axe-a11y-check.yml @@ -26,6 +26,11 @@ jobs: - run: npm install -g mocha - run: npm install eslint - run: npm install eslint-config-google + - run: | + until curl -sSf http://localhost:4010 >/dev/null; do + echo "Waiting for server to start..." + sleep 5 + done - run: http-server -s & - run: npm run build --if-present - name: Run axe From 82760842cf6e8e32eeaca813daf0c25a2e6bb337 Mon Sep 17 00:00:00 2001 From: Victoria Nduka <122698422+nwanduka@users.noreply.github.com> Date: Sun, 14 Apr 2024 19:32:48 +0100 Subject: [PATCH 05/18] Update axe-a11y-check.yml --- .github/workflows/axe-a11y-check.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/axe-a11y-check.yml b/.github/workflows/axe-a11y-check.yml index f4481ca5d..dcc7b4ed6 100644 --- a/.github/workflows/axe-a11y-check.yml +++ b/.github/workflows/axe-a11y-check.yml @@ -26,13 +26,13 @@ jobs: - run: npm install -g mocha - run: npm install eslint - run: npm install eslint-config-google + - run: http-server -s & + - run: npm run build --if-present - run: | until curl -sSf http://localhost:4010 >/dev/null; do echo "Waiting for server to start..." sleep 5 done - - run: http-server -s & - - run: npm run build --if-present - name: Run axe run: | npm install -g @axe-core/cli From 66a0e0a8ad00ab3d130334e7884f628d27acf924 Mon Sep 17 00:00:00 2001 From: Victoria Nduka <122698422+nwanduka@users.noreply.github.com> Date: Sun, 14 Apr 2024 19:40:02 +0100 Subject: [PATCH 06/18] Update axe-a11y-check.yml --- .github/workflows/axe-a11y-check.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/axe-a11y-check.yml b/.github/workflows/axe-a11y-check.yml index dcc7b4ed6..b937e4c66 100644 --- a/.github/workflows/axe-a11y-check.yml +++ b/.github/workflows/axe-a11y-check.yml @@ -28,11 +28,6 @@ jobs: - run: npm install eslint-config-google - run: http-server -s & - run: npm run build --if-present - - run: | - until curl -sSf http://localhost:4010 >/dev/null; do - echo "Waiting for server to start..." - sleep 5 - done - name: Run axe run: | npm install -g @axe-core/cli From d030a5c5650ef1fa629001bf3a214e36cc59c31d Mon Sep 17 00:00:00 2001 From: Victoria Nduka <122698422+nwanduka@users.noreply.github.com> Date: Sun, 14 Apr 2024 19:55:42 +0100 Subject: [PATCH 07/18] Update axe-a11y-check.yml --- .github/workflows/axe-a11y-check.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/axe-a11y-check.yml b/.github/workflows/axe-a11y-check.yml index b937e4c66..6d9350b85 100644 --- a/.github/workflows/axe-a11y-check.yml +++ b/.github/workflows/axe-a11y-check.yml @@ -27,6 +27,7 @@ jobs: - run: npm install eslint - run: npm install eslint-config-google - run: http-server -s & + - run: npm ci - run: npm run build --if-present - name: Run axe run: | From 0071f2787cd40f8e9de76606c488cccd6b5b64da Mon Sep 17 00:00:00 2001 From: Victoria Nduka <122698422+nwanduka@users.noreply.github.com> Date: Sun, 14 Apr 2024 20:00:09 +0100 Subject: [PATCH 08/18] Update axe-a11y-check.yml --- .github/workflows/axe-a11y-check.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/axe-a11y-check.yml b/.github/workflows/axe-a11y-check.yml index 6d9350b85..ef72bf02e 100644 --- a/.github/workflows/axe-a11y-check.yml +++ b/.github/workflows/axe-a11y-check.yml @@ -26,9 +26,8 @@ jobs: - run: npm install -g mocha - run: npm install eslint - run: npm install eslint-config-google - - run: http-server -s & - - run: npm ci - run: npm run build --if-present + - run: http-server -s & - name: Run axe run: | npm install -g @axe-core/cli From ee720240438ee3b6033e4de88a844880545aa905 Mon Sep 17 00:00:00 2001 From: Victoria Nduka <122698422+nwanduka@users.noreply.github.com> Date: Tue, 16 Apr 2024 15:44:22 +0100 Subject: [PATCH 09/18] Update axe-a11y-check.yml --- .github/workflows/axe-a11y-check.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/axe-a11y-check.yml b/.github/workflows/axe-a11y-check.yml index ef72bf02e..d3ad42af3 100644 --- a/.github/workflows/axe-a11y-check.yml +++ b/.github/workflows/axe-a11y-check.yml @@ -23,12 +23,9 @@ jobs: - run: npm install - run: npm install jsdom - run: npm install -g http-server - - run: npm install -g mocha - - run: npm install eslint - - run: npm install eslint-config-google - run: npm run build --if-present - run: http-server -s & - name: Run axe run: | npm install -g @axe-core/cli - axe http://localhost:4010 --exit + axe http://localhost:8000 --exit From c8c69ad9afd8fe07dd958949b742fd2db13318f8 Mon Sep 17 00:00:00 2001 From: Victoria Nduka <122698422+nwanduka@users.noreply.github.com> Date: Tue, 16 Apr 2024 15:58:35 +0100 Subject: [PATCH 10/18] Update axe-a11y-check.yml --- .github/workflows/axe-a11y-check.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/axe-a11y-check.yml b/.github/workflows/axe-a11y-check.yml index d3ad42af3..f52aff4b3 100644 --- a/.github/workflows/axe-a11y-check.yml +++ b/.github/workflows/axe-a11y-check.yml @@ -21,11 +21,10 @@ jobs: with: node-version: ${{ matrix.node-version }} - run: npm install - - run: npm install jsdom - run: npm install -g http-server - run: npm run build --if-present - run: http-server -s & + - run: chromedriver --headless & - name: Run axe run: | - npm install -g @axe-core/cli - axe http://localhost:8000 --exit + axe http://localhost:4010 --exit From a340f19a10769770efe815648861829ea20bd97e Mon Sep 17 00:00:00 2001 From: Victoria Nduka <122698422+nwanduka@users.noreply.github.com> Date: Tue, 16 Apr 2024 16:00:53 +0100 Subject: [PATCH 11/18] added axe-core-cli in dependencies --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 83f457b01..5d70461cf 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "lodash": "^4.17.21", "mocha": "^10.2.0", "node-fetch": "^2.6.7", - "tippy": "0.0.0" + "tippy": "0.0.0", + "@axe-core/cli": "^4.9.0" } } From eee2d73241b043a93a2e25de02399f3e13045ddc Mon Sep 17 00:00:00 2001 From: Victoria Nduka <122698422+nwanduka@users.noreply.github.com> Date: Tue, 16 Apr 2024 16:03:55 +0100 Subject: [PATCH 12/18] Update package.json (removed axe-core from dependencies) --- package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index 5d70461cf..83f457b01 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,6 @@ "lodash": "^4.17.21", "mocha": "^10.2.0", "node-fetch": "^2.6.7", - "tippy": "0.0.0", - "@axe-core/cli": "^4.9.0" + "tippy": "0.0.0" } } From 55d26e6d561e757854ce8d8c9ccb9bb5fd2bc5dc Mon Sep 17 00:00:00 2001 From: Victoria Nduka <122698422+nwanduka@users.noreply.github.com> Date: Tue, 16 Apr 2024 16:04:46 +0100 Subject: [PATCH 13/18] Update axe-a11y-check.yml --- .github/workflows/axe-a11y-check.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/axe-a11y-check.yml b/.github/workflows/axe-a11y-check.yml index f52aff4b3..2e375d47a 100644 --- a/.github/workflows/axe-a11y-check.yml +++ b/.github/workflows/axe-a11y-check.yml @@ -27,4 +27,5 @@ jobs: - run: chromedriver --headless & - name: Run axe run: | + npm install -g @axe-core/cli axe http://localhost:4010 --exit From 5fd6daec3e566923dccc3ec3dd3469f1a8576a94 Mon Sep 17 00:00:00 2001 From: Victoria Nduka <122698422+nwanduka@users.noreply.github.com> Date: Tue, 16 Apr 2024 16:25:40 +0100 Subject: [PATCH 14/18] Update package.json --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 83f457b01..5d70461cf 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "lodash": "^4.17.21", "mocha": "^10.2.0", "node-fetch": "^2.6.7", - "tippy": "0.0.0" + "tippy": "0.0.0", + "@axe-core/cli": "^4.9.0" } } From 7f0a6af23ce2f86084ebc7a4b97270ec1e46a8d6 Mon Sep 17 00:00:00 2001 From: Victoria Nduka <122698422+nwanduka@users.noreply.github.com> Date: Tue, 16 Apr 2024 16:52:58 +0100 Subject: [PATCH 15/18] Update axe-a11y-check.yml --- .github/workflows/axe-a11y-check.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/axe-a11y-check.yml b/.github/workflows/axe-a11y-check.yml index 2e375d47a..e8de7aa5b 100644 --- a/.github/workflows/axe-a11y-check.yml +++ b/.github/workflows/axe-a11y-check.yml @@ -22,9 +22,10 @@ jobs: node-version: ${{ matrix.node-version }} - run: npm install - run: npm install -g http-server + - run: npm install selenium-webdriver + - run: npm install @axe-core/webdriverjs - run: npm run build --if-present - run: http-server -s & - - run: chromedriver --headless & - name: Run axe run: | npm install -g @axe-core/cli From ff7698899c6a7b9e915571392adca47b7121cdc6 Mon Sep 17 00:00:00 2001 From: Victoria Nduka <122698422+nwanduka@users.noreply.github.com> Date: Tue, 16 Apr 2024 17:18:50 +0100 Subject: [PATCH 16/18] Update axe-a11y-check.yml --- .github/workflows/axe-a11y-check.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/axe-a11y-check.yml b/.github/workflows/axe-a11y-check.yml index e8de7aa5b..75d2ada9d 100644 --- a/.github/workflows/axe-a11y-check.yml +++ b/.github/workflows/axe-a11y-check.yml @@ -22,11 +22,10 @@ jobs: node-version: ${{ matrix.node-version }} - run: npm install - run: npm install -g http-server - - run: npm install selenium-webdriver - - run: npm install @axe-core/webdriverjs - run: npm run build --if-present - run: http-server -s & - name: Run axe run: | - npm install -g @axe-core/cli + npm install -g @axe-core/cli + sleep 90 axe http://localhost:4010 --exit From 5f34a3a83a9a5d4a565b08d3ee20f2dd88fcb7b8 Mon Sep 17 00:00:00 2001 From: Victoria Nduka <122698422+nwanduka@users.noreply.github.com> Date: Tue, 16 Apr 2024 17:19:27 +0100 Subject: [PATCH 17/18] Update package.json --- package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index 5d70461cf..83f457b01 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,6 @@ "lodash": "^4.17.21", "mocha": "^10.2.0", "node-fetch": "^2.6.7", - "tippy": "0.0.0", - "@axe-core/cli": "^4.9.0" + "tippy": "0.0.0" } } From a0ff9b3c8998177f672e177d5e336abd819b325a Mon Sep 17 00:00:00 2001 From: Victoria Nduka <122698422+nwanduka@users.noreply.github.com> Date: Tue, 16 Apr 2024 22:21:26 +0100 Subject: [PATCH 18/18] Update axe-a11y-check.yml --- .github/workflows/axe-a11y-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/axe-a11y-check.yml b/.github/workflows/axe-a11y-check.yml index 75d2ada9d..76022f4c1 100644 --- a/.github/workflows/axe-a11y-check.yml +++ b/.github/workflows/axe-a11y-check.yml @@ -28,4 +28,4 @@ jobs: run: | npm install -g @axe-core/cli sleep 90 - axe http://localhost:4010 --exit + axe http://127.0.0.1:8080 --exit