1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-10-27 07:45:46 -04:00

fix some percy quirks with .percy.yml config

This commit is contained in:
2020-04-01 17:05:26 -04:00
parent 5c9081c37c
commit e35b7282fe
5 changed files with 299 additions and 91 deletions

View File

@@ -37,7 +37,7 @@ jobs:
if: github.event_name == 'pull_request'
continue-on-error: true
run: |
lhci autorun --config=./lighthouserc.json \
lhci autorun --config=./.lighthouserc.json \
--collect.url=https://deploy-preview-${{ github.event.number }}--jakejarvis.netlify.com/ \
--collect.url=https://deploy-preview-${{ github.event.number }}--jakejarvis.netlify.com/notes/how-to-pull-request-fork-github/ \
--collect.url=https://deploy-preview-${{ github.event.number }}--jakejarvis.netlify.com/notes/how-to-pull-request-fork-github/amp.html
@@ -47,7 +47,7 @@ jobs:
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
continue-on-error: true
run: |
lhci autorun --config=./lighthouserc.json \
lhci autorun --config=./.lighthouserc.json \
--collect.url=https://jarv.is/ \
--collect.url=https://jarv.is/notes/how-to-pull-request-fork-github/ \
--collect.url=https://jarv.is/notes/how-to-pull-request-fork-github/amp.html
@@ -82,8 +82,13 @@ jobs:
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn install --no-ignore-optional --frozen-lockfile
- run: yarn build:preview
- run: |
yarn install --no-ignore-optional --frozen-lockfile
yarn build:preview
- run: yarn lint
continue-on-error: true
- name: Include .percy.yml in artifact
run: cp .percy.yml public/
- uses: actions/upload-artifact@v1
with:
name: public
@@ -99,7 +104,6 @@ jobs:
name: public
- uses: percy/snapshot-action@v0.1.0
with:
build-directory: public
flags: --snapshot-files "**/index.html" --network-idle-timeout 2000
flags: --config public/.percy.yml
env:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}