diff --git a/.github/workflows/axe.yaml b/.github/workflows/axe.yaml new file mode 100644 index 0000000..45f7114 --- /dev/null +++ b/.github/workflows/axe.yaml @@ -0,0 +1,23 @@ +name: axe +on: + push: + branches: [main] + pull_request: + branches: [main] +jobs: + axe: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Use Node.js 16.x + uses: actions/setup-node@v1 + with: + node-version: 16.x + - run: npm ci + - run: npm run dev & npx wait-on http://localhost:3000 + - name: Install browser drivers + run: npx browser-driver-manager install chrome + - name: Run axe + run: | + npm install -g @axe-core/cli + axe http://localhost:3000 --exit