1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-09-19 20:02:10 +00:00

CI: save lighthouse artifacts

This commit is contained in:
Rohan Kumar 2020-12-23 21:47:58 -08:00
parent e989ff01c4
commit d8f6d1a913
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479
3 changed files with 13 additions and 17 deletions

View file

@ -5,8 +5,10 @@ packages:
- zopfli
- git # for Hugo's gitInfo
- make
- npm
- chromium
- npm # for testing with lighthouse and webhint
- chromium # for testing with lighthouse and webhint
environment:
HINT_TELEMETRY: off
sources:
- https://git.sr.ht/~seirdy/seirdy.one
secrets:
@ -21,9 +23,13 @@ tasks:
rsync deploy@seirdy.one:/home/deploy/binaries.tar.gz .
mkdir -p ~/bin
tar x -ozC ~/bin -f binaries.tar.gz
- build_deploy: |
cd seirdy.one
npm i -D
- build_deploy: |
cd seirdy.one
export PATH=~/bin:$PATH
make DOMAIN=staging.seirdy.one test-staging
tar czf ~/lighthouse-reports.tar.gz lighthouse-reports
make clean deploy
artifacts:
- lighthouse-reports.tar.gz

View file

@ -17,9 +17,9 @@ ci:
splash-screen: "off" # not a PWA
themed-omnibox: "off" # antifeature, not a PWA
works-offline: "off" # not a PWA. Use caching.
is-crawlable: "off" # staging server won't be indexed
is-crawlable: "off" # staging server won't be indexed
timing-budget: "off" # buggy; manually use the below assertions instead
canonical: "off" # staging server doesn't have canonical
canonical: "off" # staging server doesn't have canonical
speed-index:
- warn
- maxNumericValue: 3000
@ -53,8 +53,8 @@ ci:
- https://staging.seirdy.one/
- https://staging.seirdy.one/about.html
- https://staging.seirdy.one/2020/11/23/website-best-practices.html
numberOfRuns: 5
numberOfRuns: 3
upload:
outputDir: lighthouse-reports
reportFilenamePattern: lighthouse-report-%%DATE%%.%%EXTENSION%%
reportFilenamePattern: lighthouse-report-%%PATHNAME%%.%%EXTENSION%%
target: filesystem

View file

@ -1,14 +1,4 @@
{
"name": "seirdy.one",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git@git.sr.ht:~seirdy/seirdy.one"
},
"author": "",
"license": "MIT",
"devDependencies": {
"@hint/configuration-web-recommended": "^8.1.0",
"@hint/formatter-codeframe": "^3.1.19",