From ebcca861d1c899505c9e296ab0f59f3f6cbcc645 Mon Sep 17 00:00:00 2001 From: Guillaume Libersat Date: Mon, 3 Feb 2025 15:27:56 +0100 Subject: [PATCH] add a11y github action --- .github/workflows/a11y.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/a11y.yml diff --git a/.github/workflows/a11y.yml b/.github/workflows/a11y.yml new file mode 100644 index 000000000..cba2c68a6 --- /dev/null +++ b/.github/workflows/a11y.yml @@ -0,0 +1,24 @@ +name: CI +on: [push] +jobs: + lhci: + name: Lighthouse + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.sha }} + - name: Use Node.js 16.x + uses: actions/setup-node@v3 + with: + node-version: 16.x + - name: npm install, build + run: | + npm install + npm run build + - name: run Lighthouse CI + run: | + npm install -g @lhci/cli@0.14.x + lhci autorun + env: + LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}