Skip to content

Commit

Permalink
ci(tools): #21 run lost pixel github action
Browse files Browse the repository at this point in the history
  • Loading branch information
MrGreenTea committed Jul 4, 2024
1 parent ed57f32 commit 838f1b5
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/vrt.yml
Original file line number Diff line number Diff line change
@@ -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 }}
10 changes: 10 additions & 0 deletions lostpixel.config.ts
Original file line number Diff line number Diff line change
@@ -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,
};

0 comments on commit 838f1b5

Please sign in to comment.