From 8dff58b157e38889c57a704e02169a1c442873ec Mon Sep 17 00:00:00 2001 From: Victoria Nduka <122698422+nwanduka@users.noreply.github.com> Date: Mon, 1 Jul 2024 12:53:39 +0100 Subject: [PATCH] Create pa11y.yml --- .github/workflows/pa11y.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/pa11y.yml diff --git a/.github/workflows/pa11y.yml b/.github/workflows/pa11y.yml new file mode 100644 index 000000000..16ae57103 --- /dev/null +++ b/.github/workflows/pa11y.yml @@ -0,0 +1,31 @@ +name: pa11y +on: + push: + branches: + - master + - develop + pull_request: + branches: + - master + - develop +jobs: + pa11y: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [20.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 install + - run: npm install -g http-server + - run: npm run build --if-present + - run: http-server -s & + - name: Run Pa11y + run: | + npm install -g pa11y + sleep 90 + pa11y http://127.0.0.1:8080