Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/vrt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
visual-regression:
if: github.event_name == 'pull_request' || github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
name: Lost Pixel
name: Argos

steps:
- name: Checkout
Expand All @@ -46,13 +46,13 @@ jobs:
- name: Build app
run: npm run build

- name: Start server (in background)
run: npm run preview &
- name: Install Playwright browser
run: npx playwright install --with-deps chromium

- name: Lost Pixel
uses: lost-pixel/lost-pixel@v3.22.0
- name: Argos
run: npm run test:vrt
env:
LOST_PIXEL_API_KEY: ${{ secrets.LOST_PIXEL_API_KEY }}
GITHUB_TOKEN: ${{ github.token }}

deploy-production:
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@
.netlify
dist/
node_modules/
playwright-report/
screenshots/
src/env.d.ts
test-results/
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ Source for [johnkurkowski.com](https://johnkurkowski.com).

npm install

Install Playwright browsers only if you plan to run browser-based tests locally.

npx playwright install chromium

### Running

npm start
Expand All @@ -19,9 +23,8 @@ Source for [johnkurkowski.com](https://johnkurkowski.com).
Tests are run in CI and must pass before production deploy, i.e. pushes to
trunk. Branches deploy regardless of CI passing.

Before push, you can preview [Lost Pixel](https://app.lost-pixel.com/) VRT's
snapshots against your running local server in production mode.
Before push, you can preview [Argos](https://argos-ci.com/) VRT's snapshots
against your built site in production mode.

npm run build
npm run preview &
npx lost-pixel local
npm run test:vrt
61 changes: 0 additions & 61 deletions lostpixel.config.ts

This file was deleted.

Loading