1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-10-27 09:55:47 -04:00

test private lighthouse CI server

public temporary server was kinda flaky
This commit is contained in:
2020-07-07 10:46:59 -04:00
parent 48eea4ce98
commit ec2ed28bb9
2 changed files with 5 additions and 3 deletions

View File

@@ -25,6 +25,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: deploy needs: deploy
env: env:
LHCI_TOKEN: ${{ secrets.LHCI_TOKEN }}
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@@ -42,7 +43,7 @@ jobs:
if: "github.event_name == 'pull_request'" if: "github.event_name == 'pull_request'"
continue-on-error: true continue-on-error: true
run: | run: |
lhci autorun --config=./.lighthouserc.json \ lhci autorun \
--collect.url=https://deploy-preview-${{ github.event.number }}--jakejarvis.netlify.com/ \ --collect.url=https://deploy-preview-${{ github.event.number }}--jakejarvis.netlify.com/ \
--collect.url=https://deploy-preview-${{ github.event.number }}--jakejarvis.netlify.com/notes/netlify-analytics-review/ \ --collect.url=https://deploy-preview-${{ github.event.number }}--jakejarvis.netlify.com/notes/netlify-analytics-review/ \
--collect.url=https://deploy-preview-${{ github.event.number }}--jakejarvis.netlify.com/notes/how-to-pull-request-fork-github/amp.html --collect.url=https://deploy-preview-${{ github.event.number }}--jakejarvis.netlify.com/notes/how-to-pull-request-fork-github/amp.html
@@ -50,7 +51,7 @@ jobs:
if: "github.event_name == 'push' && github.ref == 'refs/heads/main'" if: "github.event_name == 'push' && github.ref == 'refs/heads/main'"
continue-on-error: true continue-on-error: true
run: | run: |
lhci autorun --config=./.lighthouserc.json \ lhci autorun \
--collect.url=https://jarv.is/ \ --collect.url=https://jarv.is/ \
--collect.url=https://jarv.is/notes/netlify-analytics-review/ \ --collect.url=https://jarv.is/notes/netlify-analytics-review/ \
--collect.url=https://jarv.is/notes/how-to-pull-request-fork-github/amp.html --collect.url=https://jarv.is/notes/how-to-pull-request-fork-github/amp.html

View File

@@ -22,7 +22,8 @@
} }
}, },
"upload": { "upload": {
"target": "temporary-public-storage" "target": "lhci",
"serverBaseUrl": "https://powerful-falls-79142.herokuapp.com"
} }
} }
} }