diff --git a/.github/workflows/vrt.yml b/.github/workflows/vrt.yml new file mode 100644 index 00000000..2f216700 --- /dev/null +++ b/.github/workflows/vrt.yml @@ -0,0 +1,29 @@ +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + name: Lost Pixel + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: 16.x + + - name: Install dependencies + run: pnpm install + + - name: Build app + run: pnpm run build + + - name: Start server (in background) + run: pnpm run preview & + + - name: Lost Pixel + uses: lost-pixel/lost-pixel@v3.16.0 + env: + LOST_PIXEL_API_KEY: ${{ secrets.LOST_PIXEL_API_KEY }} diff --git a/lostpixel.config.ts b/lostpixel.config.ts new file mode 100644 index 00000000..0fb9d01d --- /dev/null +++ b/lostpixel.config.ts @@ -0,0 +1,10 @@ +import type { CustomProjectConfig } from 'lost-pixel'; + +export const config: CustomProjectConfig = { + pageShots: { + pages: [{ path: '/', name: 'landing' }], + baseUrl: 'http://172.17.0.1:3000', + }, + lostPixelProjectId: 'clrkf72110ugom40el0d2rkx9', + apiKey: process.env.LOST_PIXEL_API_KEY, +};