From 299c0b3a291ef9aaf0bd922f5e45f2895884ea74 Mon Sep 17 00:00:00 2001 From: Victoria Nduka <122698422+nwanduka@users.noreply.github.com> Date: Tue, 25 Jun 2024 17:54:08 +0100 Subject: [PATCH] Create axe.yml --- .github/workflows/axe.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/axe.yml diff --git a/.github/workflows/axe.yml b/.github/workflows/axe.yml new file mode 100644 index 0000000..07f34e3 --- /dev/null +++ b/.github/workflows/axe.yml @@ -0,0 +1,24 @@ +name: axe-test +on: + push: + branches: [main] + pull_request: + branches: [main] +jobs: + axe: + runs-on: ubuntu-latest + steps: + - uses: action/checkout@v2 + - name: Use NodeJS 16 + uses: action/setup-node@v1 + with: + node-version: 16 + - run: npm ci + - run: npm run build --if-present + - run: npm start & npx wait-on https://localhost:3000 + - name: Run Axe + - run: | + npm install -g @axe-core/cli + axe https://localhost:3000 --exit + +