From 7b6791e1aa2257df1fad39cbdae5ee11b0118aec Mon Sep 17 00:00:00 2001 From: Steve Jones Date: Thu, 30 Nov 2023 16:31:36 -0500 Subject: [PATCH] updated - a11y check --- .github/workflows/accessibility.yml | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/.github/workflows/accessibility.yml b/.github/workflows/accessibility.yml index 6126150f..ea60da64 100644 --- a/.github/workflows/accessibility.yml +++ b/.github/workflows/accessibility.yml @@ -7,19 +7,18 @@ on: branches: [ '**' ] jobs: - accessibility: + axe: runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - - name: Set up Node.js - uses: actions/setup-node@v2 - with: - node-version: '14' # or the version you need - - - name: Install dependencies - run: npm install - - - name: Run Axe Linter - run: npx axe-linter # Replace this with your specific command to run Axe Linter \ No newline at end of file + - uses: actions/checkout@v2 + - name: Use Node.js 12.x + uses: actions/setup-node@v1 + with: + node-version: 12.x + - run: npm ci + - run: npm run build --if-present + - run: npm start & npx wait-on http://localhost:3000 + - name: Run axe + run: | + npm install -g @axe-core/cli + axe http://localhost:3000 --exit \ No newline at end of file