dev #9
3 changed files with 28 additions and 1 deletions
|
@ -60,7 +60,7 @@ jobs:
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: npm install @unlighthouse/cli puppeteer
|
run: npm install @unlighthouse/cli puppeteer
|
||||||
- name: Run unlighthouse
|
- name: Run unlighthouse
|
||||||
run: node_modules/.bin/unlighthouse-ci --site website:8081
|
run: node_modules/.bin/unlighthouse-ci
|
||||||
- name: Upload reports
|
- name: Upload reports
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|
24
.forgejo/workflows/unlighthouse.yml
Normal file
24
.forgejo/workflows/unlighthouse.yml
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- '[0-9]+\.[0-9]+\.[0-9]+unlighthouse[0-9]+'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
unlighthouse:
|
||||||
|
needs: [publish]
|
||||||
|
if: success()
|
||||||
|
runs-on: docker
|
||||||
|
container: registry.gitlab.com/gitlab-ci-utils/lighthouse:latest
|
||||||
|
services:
|
||||||
|
website:
|
||||||
|
image: forgejo.neshweb.net/firq/firq-dev-website:preview
|
||||||
|
steps:
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: npm install @unlighthouse/cli puppeteer
|
||||||
|
- name: Run unlighthouse
|
||||||
|
run: node_modules/.bin/unlighthouse-ci
|
||||||
|
- name: Upload reports
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: unlighthouse-reports
|
||||||
|
path: unlighthouse-reports/
|
|
@ -6,5 +6,8 @@ export default {
|
||||||
budget: 90,
|
budget: 90,
|
||||||
buildStatic: true
|
buildStatic: true
|
||||||
},
|
},
|
||||||
|
server: {
|
||||||
|
hostname: 'website:8081'
|
||||||
|
},
|
||||||
outputPath: "unlighthouse-reports",
|
outputPath: "unlighthouse-reports",
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue