1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-23 21:02:09 +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 - zopfli
- git # for Hugo's gitInfo - git # for Hugo's gitInfo
- make - make
- npm - npm # for testing with lighthouse and webhint
- chromium - chromium # for testing with lighthouse and webhint
environment:
HINT_TELEMETRY: off
sources: sources:
- https://git.sr.ht/~seirdy/seirdy.one - https://git.sr.ht/~seirdy/seirdy.one
secrets: secrets:
@ -21,9 +23,13 @@ tasks:
rsync deploy@seirdy.one:/home/deploy/binaries.tar.gz . rsync deploy@seirdy.one:/home/deploy/binaries.tar.gz .
mkdir -p ~/bin mkdir -p ~/bin
tar x -ozC ~/bin -f binaries.tar.gz tar x -ozC ~/bin -f binaries.tar.gz
- build_deploy: |
cd seirdy.one cd seirdy.one
npm i -D npm i -D
- build_deploy: |
cd seirdy.one
export PATH=~/bin:$PATH export PATH=~/bin:$PATH
make DOMAIN=staging.seirdy.one test-staging make DOMAIN=staging.seirdy.one test-staging
tar czf ~/lighthouse-reports.tar.gz lighthouse-reports
make clean deploy make clean deploy
artifacts:
- lighthouse-reports.tar.gz

View file

@ -53,8 +53,8 @@ ci:
- https://staging.seirdy.one/ - https://staging.seirdy.one/
- https://staging.seirdy.one/about.html - https://staging.seirdy.one/about.html
- https://staging.seirdy.one/2020/11/23/website-best-practices.html - https://staging.seirdy.one/2020/11/23/website-best-practices.html
numberOfRuns: 5 numberOfRuns: 3
upload: upload:
outputDir: lighthouse-reports outputDir: lighthouse-reports
reportFilenamePattern: lighthouse-report-%%DATE%%.%%EXTENSION%% reportFilenamePattern: lighthouse-report-%%PATHNAME%%.%%EXTENSION%%
target: filesystem 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": { "devDependencies": {
"@hint/configuration-web-recommended": "^8.1.0", "@hint/configuration-web-recommended": "^8.1.0",
"@hint/formatter-codeframe": "^3.1.19", "@hint/formatter-codeframe": "^3.1.19",