Skip to content

Commit

Permalink
Added axe and lighthouse checks
Browse files Browse the repository at this point in the history
  • Loading branch information
gregoriopalama committed Jan 29, 2024
1 parent 131c53a commit c492326
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/axe.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Axe

on:
push:
branches: [INFRA01]
pull_request:
branches: [INFRA01]

jobs:
axe:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- run: pnpm ci
- run: pnpm run build --if-present
- run: pnpm run dev & npx wait-on http://localhost:4321
- name: Run axe
run: |
pnpm install -g @axe-core/cli
axe http://localhost:4321 --exit
27 changes: 27 additions & 0 deletions .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Lighthouse

on:
push:
branches: [INFRA01]
pull_request:
branches: [INFRA01]

jobs:
lighthouse:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- run: pnpm install && npm install -g @lhci/[email protected]
- run: pnpm run build
- name: Run lighthouse
run: lhci autorun
7 changes: 7 additions & 0 deletions lighthouserc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
ci: {
upload: {
target: "temporary-public-storage",
},
},
}

0 comments on commit c492326

Please sign in to comment.