Skip to content

Commit 7fffadc

Browse files
Axe Workflow Fix (#27)
<!-- markdownlint-disable-next-line first-line-heading --> ## Description <!-- Describe your changes in detail. --> This fixes the Run Axe Dependency Check workflow so that it actually works. ## Context <!-- Why is this change required? What problem does it solve? --> This allows for the workflow to attempt an axe.js update from the branch the workflow is run from. ## Type of changes <!-- What types of changes does your code introduce? Put an `x` in all the boxes that apply. --> - [ ] Refactoring (non-breaking change) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would change existing functionality) - [x] Bug fix (non-breaking change which fixes an issue) ## Checklist <!-- Go over all the following points, and put an `x` in all the boxes that apply. --> - [ ] I am familiar with the [contributing guidelines](../docs/CONTRIBUTING.md) - [x] I have followed the code style of the project - [ ] I have added tests to cover my changes - [ ] I have updated the documentation accordingly - [ ] This PR is a result of pair or mob programming --- ## Sensitive Information Declaration To ensure the utmost confidentiality and protect your and others privacy, we kindly ask you to NOT including [PII (Personal Identifiable Information) / PID (Personal Identifiable Data)](https://digital.nhs.uk/data-and-information/keeping-data-safe-and-benefitting-the-public) or any other sensitive data in this PR (Pull Request) and the codebase changes. We will remove any PR that do contain any sensitive information. We really appreciate your cooperation in this matter. - [x] I confirm that neither PII/PID nor sensitive data are included in this PR and the codebase changes. --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 751ddbd commit 7fffadc

File tree

3 files changed

+253
-148
lines changed

3 files changed

+253
-148
lines changed

.github/workflows/axe-dependency-check.yaml

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,36 @@ on: [workflow_dispatch]
55
jobs:
66
axe-dependency-check:
77
name: "Axe Version Check"
8+
runs-on: ubuntu-latest
89
timeout-minutes: 10
10+
911
steps:
10-
- name: "Axe Version Check"
11-
uses: ./.github/actions/check-axe-version
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
- run: |
15+
git checkout ${{ github.head_ref || github.ref_name }}
16+
- name: Install Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: 'latest'
20+
- name: Install axe-core in temp dir
21+
run: |
22+
cd utils/resources
23+
mkdir temp
24+
cd temp
25+
npm install axe-core
26+
- name: Retrieve axe.js file
27+
run: |
28+
cd utils/resources/temp/node_modules/axe-core
29+
mv axe.js ../../../
30+
- name: Remove temp directory
31+
run: |
32+
cd utils/resources
33+
rm -rf temp
34+
- name: Commit to axe-dependency-check branch
35+
run: |
36+
git config user.name "github-actions[bot]"
37+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
38+
git add utils/resources/axe.js
39+
git commit -m "axe-core automated update"
40+
git push

0 commit comments

Comments
 (0)