diff options
author | Matt Stratton <matt.stratton@gmail.com> | 2020-12-10 00:10:53 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-10 00:10:53 +0300 |
commit | 6616bf5cdf72f2cd8bb3577c53764410476813d1 (patch) | |
tree | 9c192ba3ad47ebc023a9a688ae1d0017f0fb365e | |
parent | 4c60ead7687518dc5260135e8ada78c89e339b2d (diff) |
First test for lighthouse (#319)
-rw-r--r-- | .github/workflows/ci.yml | 29 | ||||
-rw-r--r-- | exampleSite/content/host/bkromhout.md | 2 | ||||
-rw-r--r-- | exampleSite/content/host/thess.md | 2 | ||||
-rw-r--r-- | exampleSite/static/img/host/bridget.jpg | bin | 0 -> 162747 bytes | |||
-rw-r--r-- | exampleSite/static/img/host/trevor.jpg | bin | 0 -> 44469 bytes | |||
-rw-r--r-- | lighthouserc.js | 16 |
6 files changed, 47 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..1696c1f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +name: CI
+on: [pull_request]
+jobs:
+ lhci:
+ name: Lighthouse
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ ref: ${{ github.event.pull_request.head.sha }}
+ - name: Setup Hugo
+ uses: peaceiris/actions-hugo@v2
+ with:
+ hugo-version: '0.75.1'
+ - name: Use Node.js 10.x
+ uses: actions/setup-node@v1
+ with:
+ node-version: 10.x
+ - name: build
+ run: |
+ cd exampleSite
+ # hugo server --baseUrl="http://localhost:1313"
+ ls
+ - name: run Lighthouse CI
+ run: |
+ npm install -g @lhci/cli@0.6.x
+ lhci autorun
+ env:
+ LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
\ No newline at end of file diff --git a/exampleSite/content/host/bkromhout.md b/exampleSite/content/host/bkromhout.md index 15584c1..8c1b14d 100644 --- a/exampleSite/content/host/bkromhout.md +++ b/exampleSite/content/host/bkromhout.md @@ -8,7 +8,7 @@ Facebook = "" Linkedin = "" Pronouns = "" GitHub = "" -Thumbnail = "https://www.arresteddevops.com/img/Bridget.png" +Thumbnail = "img/host/Bridget.jpg" Pinterest = "" Instagram = "" YouTube = "" diff --git a/exampleSite/content/host/thess.md b/exampleSite/content/host/thess.md index bec6e79..e657e93 100644 --- a/exampleSite/content/host/thess.md +++ b/exampleSite/content/host/thess.md @@ -8,7 +8,7 @@ Facebook = "" Linkedin = "" Pronouns = "" GitHub = "trevorghess" -Thumbnail = "https://www.arresteddevops.com/img/trevor.png" +Thumbnail = "img/host/trevor.jpg" Pinterest = "" Instagram = "" YouTube = "" diff --git a/exampleSite/static/img/host/bridget.jpg b/exampleSite/static/img/host/bridget.jpg Binary files differnew file mode 100644 index 0000000..7c2bd33 --- /dev/null +++ b/exampleSite/static/img/host/bridget.jpg diff --git a/exampleSite/static/img/host/trevor.jpg b/exampleSite/static/img/host/trevor.jpg Binary files differnew file mode 100644 index 0000000..46e078c --- /dev/null +++ b/exampleSite/static/img/host/trevor.jpg diff --git a/lighthouserc.js b/lighthouserc.js new file mode 100644 index 0000000..d8e611f --- /dev/null +++ b/lighthouserc.js @@ -0,0 +1,16 @@ +module.exports = {
+ ci: {
+ collect: {
+ url: [
+ 'http://localhost:1313/',
+ 'http://localhost:1313/aug/',
+ 'http://localhost:1313/guest/',
+ 'http://localhost:1313/about/'
+ ],
+ startServerCommand: 'cd exampleSite && HUGO_ENV=production && hugo server --baseUrl="http://localhost:1313"',
+ },
+ upload: {
+ target: 'temporary-public-storage',
+ },
+ },
+};
\ No newline at end of file |