diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 600151e9..2b740636 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,8 +55,6 @@ jobs: build: runs-on: ubuntu-latest if: (!contains(github.actor, '[bot]')) || (!contains(github.event.head_commit.message, '[skip ci]')) - env: - PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }} steps: - uses: actions/checkout@v2 with: @@ -89,5 +87,5 @@ jobs: continue-on-error: true - name: Percy snapshots uses: percy/snapshot-action@v0.1.0 - with: - flags: --config ./.percy.yml + env: + PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }} diff --git a/.percy.yml b/.percy.yml index 2c28548c..4e2761a3 100644 --- a/.percy.yml +++ b/.percy.yml @@ -1,23 +1,27 @@ version: 1 snapshot: - widths: [375, 1280] # px + widths: [450, 1050] # px enable-javascript: true percy-css: | - video { - display: none; - } div.embed { 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... */ } .wave, .beat { - animation: none !important; + animation: none; } static-snapshots: path: public/ snapshot-files: '**/index.html' + ignore-files: '**/license/*.html,**/privacy/*.html,**/leo/*.html,**/birthday/*.html,**/hillary/*.html' agent: asset-discovery: - network-idle-timeout: 10000 # ms + network-idle-timeout: 2000 # ms