mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-26 06:21:18 -04:00
run lighthouse-ci via action [skip ci]
This commit is contained in:
37
.github/workflows/lighthouse.yml
vendored
Normal file
37
.github/workflows/lighthouse.yml
vendored
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
name: Lighthouse
|
||||||
|
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lhci:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: 12.x
|
||||||
|
# https://github.com/actions/cache/blob/master/examples.md#node---yarn
|
||||||
|
# https://github.com/actions/cache/issues/60
|
||||||
|
- name: Get yarn cache location
|
||||||
|
id: yarn-cache
|
||||||
|
run: echo "::set-output name=dir::$(yarn cache dir)"
|
||||||
|
- name: Cache dependencies
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: ${{ steps.yarn-cache.outputs.dir }}
|
||||||
|
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-yarn-
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
yarn install --no-ignore-optional --frozen-lockfile
|
||||||
|
# - uses: jakepartusch/wait-for-netlify-action@v1
|
||||||
|
# id: wait
|
||||||
|
# with:
|
||||||
|
# site_name: "jakejarvis"
|
||||||
|
- name: Run Lighthouse CI
|
||||||
|
run: |
|
||||||
|
npm install -g @lhci/cli@0.3.x
|
||||||
|
lhci autorun --config=./lighthouserc.json
|
||||||
|
env:
|
||||||
|
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
|
3
.gitignore
vendored
3
.gitignore
vendored
@@ -10,6 +10,9 @@ npm-debug.log*
|
|||||||
yarn-debug.log*
|
yarn-debug.log*
|
||||||
yarn-error.log*
|
yarn-error.log*
|
||||||
|
|
||||||
|
# Lighthouse CI
|
||||||
|
.lighthouseci/
|
||||||
|
|
||||||
# here be secrets
|
# here be secrets
|
||||||
.env
|
.env
|
||||||
.env.production
|
.env.production
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "Jake Jarvis – Front-End Web Developer in Boston, MA"
|
title: "Jake Jarvis – Front-End Web Developer in Boston, MA"
|
||||||
date: 2020-03-23 10:28:07-0400
|
date: 2020-03-28 19:20:31-0400
|
||||||
type: home
|
type: home
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -22,6 +22,6 @@ type: home
|
|||||||
<a href="https://gigaom.com/2009/10/06/fresh-faces-in-tech-10-kid-entrepreneurs-to-watch/6/" title=""Fresh Faces in Tech: 10 Kid Entrepreneurs to Watch" on Gigaom" id="news-6" target="_blank" rel="noopener">news</a>
|
<a href="https://gigaom.com/2009/10/06/fresh-faces-in-tech-10-kid-entrepreneurs-to-watch/6/" title=""Fresh Faces in Tech: 10 Kid Entrepreneurs to Watch" on Gigaom" id="news-6" target="_blank" rel="noopener">news</a>
|
||||||
<a href="https://adage.com/article/small-agency-diary/client-ceo-s-son/116723/" title=""Your Next Client? The CEO's Son" on Advertising Age" id="news-7" target="_blank" rel="noopener">outlets</a>.</p>
|
<a href="https://adage.com/article/small-agency-diary/client-ceo-s-son/116723/" title=""Your Next Client? The CEO's Son" on Advertising Age" id="news-7" target="_blank" rel="noopener">outlets</a>.</p>
|
||||||
<p>You can find some of my work on <a href="https://github.com/jakejarvis" title="Jake Jarvis on GitHub" id="github" target="_blank" rel="me noopener">GitHub</a> or <a href="https://www.linkedin.com/in/jakejarvis/" title="Jake Jarvis on LinkedIn" id="linkedin" target="_blank" rel="me noopener">LinkedIn</a>, my adventures on <a href="https://twitter.com/jakejarvis" title="Jake Jarvis on Twitter" id="twitter" target="_blank" rel="me noopener">Twitter</a>, <a href="https://www.facebook.com/jakejarvis" title="Jake Jarvis on Facebook" id="facebook" target="_blank" rel="me noopener">Facebook</a>, <a href="https://www.instagram.com/jakejarvis/" title="Jake Jarvis on Instagram" id="instagram" target="_blank" rel="me noopener">Instagram</a>, or <a href="https://pogge.rs/@jake" title="Jake Jarvis on Mastodon" id="mastodon" target="_blank" rel="me noopener">Mastodon</a>, and my old-school <a href="/resume.pdf" title="View PDF Resume" id="resume">PDF resume here</a>.</p>
|
<p>You can find some of my work on <a href="https://github.com/jakejarvis" title="Jake Jarvis on GitHub" id="github" target="_blank" rel="me noopener">GitHub</a> or <a href="https://www.linkedin.com/in/jakejarvis/" title="Jake Jarvis on LinkedIn" id="linkedin" target="_blank" rel="me noopener">LinkedIn</a>, my adventures on <a href="https://twitter.com/jakejarvis" title="Jake Jarvis on Twitter" id="twitter" target="_blank" rel="me noopener">Twitter</a>, <a href="https://www.facebook.com/jakejarvis" title="Jake Jarvis on Facebook" id="facebook" target="_blank" rel="me noopener">Facebook</a>, <a href="https://www.instagram.com/jakejarvis/" title="Jake Jarvis on Instagram" id="instagram" target="_blank" rel="me noopener">Instagram</a>, or <a href="https://pogge.rs/@jake" title="Jake Jarvis on Mastodon" id="mastodon" target="_blank" rel="me noopener">Mastodon</a>, and my old-school <a href="/resume.pdf" title="View PDF Resume" id="resume">PDF resume here</a>.</p>
|
||||||
<p>I'd love to hear from you via <a href="mailto:jake@jarv.is" title="Send Email" id="email">email</a><sup> <a class="no-underline" href="/jarvis.asc" title="My Public PGP Key" id="pgp" rel="pgpkey authn">2B0C 9CF2 51E6 9A39</a></sup>, <a href="https://twitter.com/messages/compose?recipient_id=229769022" title="Send Direct Message on Twitter" id="dm" target="_blank" rel="noopener">DM</a>, or <a href="sms:+1-617-917-3737" title="Send SMS: +1 (617) 917-3737" id="sms">text</a>!</p>
|
<p>I'd love to hear from you via <a href="mailto:jake@jarv.is" title="Send Email" id="email">email</a><sup> <a class="no-underline" href="https://keybase.io/jakejarvis/pgp_keys.asc?fingerprint=3bc6e5776bf379d36f6714802b0c9cf251e69a39" title="My Public PGP Key" id="pgp" target="_blank" rel="pgpkey authn noopener">2B0C 9CF2 51E6 9A39</a></sup>, <a href="https://twitter.com/messages/compose?recipient_id=229769022" title="Send Direct Message on Twitter" id="dm" target="_blank" rel="noopener">DM</a>, or <a href="sms:+1-617-917-3737" title="Send SMS: +1 (617) 917-3737" id="sms">text</a>!</p>
|
||||||
|
|
||||||
<p><a href="/notes/" title="My Blog" id="blog" rel="me"><span>📝</span> Read more at my blog...</a></p>
|
<p><a href="/notes/" title="My Blog" id="blog" rel="me"><span>📝</span> Read more at my blog...</a></p>
|
||||||
|
@@ -202,4 +202,4 @@ Again, [Restic's documentation](https://restic.readthedocs.io/en/latest/index.ht
|
|||||||
|
|
||||||
Literally every company's Doomsday protocols can *always* be improved, and external backups are just one part of redundancy. But pat yourself on the back — this might have been a convoluted process, but hopefully you'll be able to sleep better at night knowing your startup or personal server now has a **far** better chance of surviving whatever the cloud rains down upon you!
|
Literally every company's Doomsday protocols can *always* be improved, and external backups are just one part of redundancy. But pat yourself on the back — this might have been a convoluted process, but hopefully you'll be able to sleep better at night knowing your startup or personal server now has a **far** better chance of surviving whatever the cloud rains down upon you!
|
||||||
|
|
||||||
If you have any questions, feel free to leave a comment or [get in touch with me](mailto:jake@jarv.is). Be safe out there!
|
If you have any questions, feel free to leave a comment or [get in touch with me](https://twitter.com/jakejarvis). Be safe out there!
|
||||||
|
37
lighthouserc.json
Normal file
37
lighthouserc.json
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
{
|
||||||
|
"ci": {
|
||||||
|
"collect": {
|
||||||
|
"url": [
|
||||||
|
"http://localhost:1337/",
|
||||||
|
"http://localhost:1337/notes/",
|
||||||
|
"http://localhost:1337/notes/how-to-pull-request-fork-github/",
|
||||||
|
"http://localhost:1337/notes/how-to-pull-request-fork-github/amp.html"
|
||||||
|
],
|
||||||
|
"numberOfRuns": 1,
|
||||||
|
"startServerCommand": "yarn start --disableLiveReload",
|
||||||
|
"startServerReadyPattern": "Web Server is available at"
|
||||||
|
},
|
||||||
|
"assert": {
|
||||||
|
"preset": "lighthouse:no-pwa",
|
||||||
|
"assertions": {
|
||||||
|
"color-contrast": ["warn", {"minScore": 0.9}],
|
||||||
|
"link-text": "warn",
|
||||||
|
"tap-targets": ["warn", {"minScore": 0.6}],
|
||||||
|
"total-byte-weight": ["warn", {"minScore": 0.9}],
|
||||||
|
"unused-css-rules": "warn",
|
||||||
|
"uses-rel-preconnect": "warn",
|
||||||
|
"is-crawlable": "off",
|
||||||
|
"redirects-http": "off",
|
||||||
|
"uses-http2": "off",
|
||||||
|
"uses-long-cache-ttl": "off",
|
||||||
|
"uses-optimized-images": "off",
|
||||||
|
"uses-responsive-images": "off",
|
||||||
|
"uses-text-compression": "off",
|
||||||
|
"uses-webp-images": "off"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"upload": {
|
||||||
|
"target": "temporary-public-storage"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user