mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-10 00:12:09 +00:00
CI: save lighthouse artifacts
This commit is contained in:
parent
e989ff01c4
commit
d8f6d1a913
3 changed files with 13 additions and 17 deletions
12
.build.yml
12
.build.yml
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
10
package.json
10
package.json
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue