1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-03 16:26:40 -04:00

running out of percy snapshots...

This commit is contained in:
2020-04-29 11:57:53 -04:00
parent f7dbe5ccc7
commit 12ff2c7871
2 changed files with 13 additions and 11 deletions

View File

@ -55,8 +55,6 @@ jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: (!contains(github.actor, '[bot]')) || (!contains(github.event.head_commit.message, '[skip ci]')) if: (!contains(github.actor, '[bot]')) || (!contains(github.event.head_commit.message, '[skip ci]'))
env:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
@ -89,5 +87,5 @@ jobs:
continue-on-error: true continue-on-error: true
- name: Percy snapshots - name: Percy snapshots
uses: percy/snapshot-action@v0.1.0 uses: percy/snapshot-action@v0.1.0
with: env:
flags: --config ./.percy.yml PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}

View File

@ -1,23 +1,27 @@
version: 1 version: 1
snapshot: snapshot:
widths: [375, 1280] # px widths: [450, 1050] # px
enable-javascript: true enable-javascript: true
percy-css: | percy-css: |
video {
display: none;
}
div.embed { div.embed {
display: none; display: none;
} }
div.highlight { video {
display: none;
}
iframe#sa-graph {
display: none; /* analytics graph will change every time, obviously */
}
code, div.highlight {
border: 0 !important; /* no clue why this bugs out... */ border: 0 !important; /* no clue why this bugs out... */
} }
.wave, .beat { .wave, .beat {
animation: none !important; animation: none;
} }
static-snapshots: static-snapshots:
path: public/ path: public/
snapshot-files: '**/index.html' snapshot-files: '**/index.html'
ignore-files: '**/license/*.html,**/privacy/*.html,**/leo/*.html,**/birthday/*.html,**/hillary/*.html'
agent: agent:
asset-discovery: asset-discovery:
network-idle-timeout: 10000 # ms network-idle-timeout: 2000 # ms