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 1/4] 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 From 78ae2d9d81547906fbcc700a015d3a7da9d3e2c9 Mon Sep 17 00:00:00 2001 From: Victoria Nduka <122698422+nwanduka@users.noreply.github.com> Date: Mon, 1 Jul 2024 12:56:06 +0100 Subject: [PATCH 2/4] Create lighthouse.yml --- .github/workflows/lighthouse.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/lighthouse.yml diff --git a/.github/workflows/lighthouse.yml b/.github/workflows/lighthouse.yml new file mode 100644 index 000000000..760f33fe2 --- /dev/null +++ b/.github/workflows/lighthouse.yml @@ -0,0 +1,31 @@ +name: lighthouse +on: + push: + branches: + - master + - develop + pull_request: + branches: + - master + - develop +jobs: + lighthouse: + 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 Lighthouse + run: | + npm install -g lhci/cli@0.13.x + sleep 90 + lhci autorun From e51761e98361da27fbea3094313858b8c85fd0f1 Mon Sep 17 00:00:00 2001 From: Victoria Nduka <122698422+nwanduka@users.noreply.github.com> Date: Thu, 4 Jul 2024 13:10:22 +0100 Subject: [PATCH 3/4] Update lighthouse.yml --- .github/workflows/lighthouse.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/lighthouse.yml b/.github/workflows/lighthouse.yml index 760f33fe2..6dfcb575f 100644 --- a/.github/workflows/lighthouse.yml +++ b/.github/workflows/lighthouse.yml @@ -26,6 +26,5 @@ jobs: - run: http-server -s & - name: Run Lighthouse run: | - npm install -g lhci/cli@0.13.x - sleep 90 + npm install && npm install -g @lhci/cli@0.14.x lhci autorun From d8630c6f159906ac5c2762663f814d1001c9a705 Mon Sep 17 00:00:00 2001 From: Victoria Nduka <122698422+nwanduka@users.noreply.github.com> Date: Thu, 4 Jul 2024 13:24:58 +0100 Subject: [PATCH 4/4] Create lighthouserc.js --- lighthouserc.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lighthouserc.js diff --git a/lighthouserc.js b/lighthouserc.js new file mode 100644 index 000000000..8f0107ec0 --- /dev/null +++ b/lighthouserc.js @@ -0,0 +1,10 @@ +module.exports = { + ci: { + collect: { + staticDistDir: './', + }, + upload: { + target: 'temporary-public-storage', + }, + }, +};