From ede81cfa47c8c2d1eca074ae16afb764a6800754 Mon Sep 17 00:00:00 2001 From: Victoria Nduka <122698422+nwanduka@users.noreply.github.com> Date: Tue, 25 Jun 2024 15:16:21 +0100 Subject: [PATCH 1/5] 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 053ea9d7873c748b04244c75b5157163782754d7 Mon Sep 17 00:00:00 2001 From: Victoria Nduka <122698422+nwanduka@users.noreply.github.com> Date: Tue, 25 Jun 2024 15:26:55 +0100 Subject: [PATCH 2/5] 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..20f9f49a6 --- /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.7.x + sleep 90 + lhci autorun From 80899116c38949f62848e04b5bbfbe3b393aee35 Mon Sep 17 00:00:00 2001 From: Victoria Nduka <122698422+nwanduka@users.noreply.github.com> Date: Tue, 25 Jun 2024 16:03:49 +0100 Subject: [PATCH 3/5] Update lighthouse.yml --- .github/workflows/lighthouse.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lighthouse.yml b/.github/workflows/lighthouse.yml index 20f9f49a6..f7d074d28 100644 --- a/.github/workflows/lighthouse.yml +++ b/.github/workflows/lighthouse.yml @@ -15,9 +15,9 @@ jobs: matrix: node-version: [20.x] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - run: npm install @@ -26,6 +26,5 @@ jobs: - run: http-server -s & - name: Run Lighthouse run: | - npm install -g lhci/cli@0.7.x - sleep 90 + npm install -g @lhci/cli@0.13.x lhci autorun From 038a81ba73c02fcef491db17dcb2b0b757280001 Mon Sep 17 00:00:00 2001 From: Victoria Nduka <122698422+nwanduka@users.noreply.github.com> Date: Tue, 25 Jun 2024 16:09:03 +0100 Subject: [PATCH 4/5] Update lighthouse.yml --- .github/workflows/lighthouse.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/lighthouse.yml b/.github/workflows/lighthouse.yml index f7d074d28..512d4cbdb 100644 --- a/.github/workflows/lighthouse.yml +++ b/.github/workflows/lighthouse.yml @@ -21,10 +21,8 @@ jobs: 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 + npm run build --if-present lhci autorun From b2a9252c45662f947981f4a5e771fc53179f60fc Mon Sep 17 00:00:00 2001 From: Victoria Nduka <122698422+nwanduka@users.noreply.github.com> Date: Tue, 25 Jun 2024 16:16:53 +0100 Subject: [PATCH 5/5] Update lighthouse.yml --- .github/workflows/lighthouse.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lighthouse.yml b/.github/workflows/lighthouse.yml index 512d4cbdb..760f33fe2 100644 --- a/.github/workflows/lighthouse.yml +++ b/.github/workflows/lighthouse.yml @@ -15,14 +15,17 @@ jobs: matrix: node-version: [20.x] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + 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 - npm run build --if-present + npm install -g lhci/cli@0.13.x + sleep 90 lhci autorun