Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
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 && npm install -g @lhci/cli@0.14.x
lhci autorun
31 changes: 31 additions & 0 deletions .github/workflows/pa11y.yml
Original file line number Diff line number Diff line change
@@ -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
10 changes: 10 additions & 0 deletions lighthouserc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
ci: {
collect: {
staticDistDir: './',
},
upload: {
target: 'temporary-public-storage',
},
},
};