Skip to content

Commit 85e71cb

Browse files
Copy Lost Pixel getting started instructions
1 parent 73f63fa commit 85e71cb

File tree

4 files changed

+2063
-12
lines changed

4 files changed

+2063
-12
lines changed

.github/workflows/vrt.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
on: [push]
2+
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
name: Lost Pixel
7+
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v3
11+
12+
- name: Setup Node
13+
uses: actions/setup-node@v3
14+
with:
15+
node-version: 16.x
16+
17+
- name: Install dependencies
18+
run: npm install
19+
20+
- name: Build app
21+
run: npm run build
22+
23+
- name: Start server (in background)
24+
run: npm run start &
25+
26+
- name: Lost Pixel
27+
uses: lost-pixel/[email protected]
28+
env:
29+
LOST_PIXEL_API_KEY: ${{ secrets.LOST_PIXEL_API_KEY }}

lostpixel.config.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { CustomProjectConfig } from 'lost-pixel'
2+
3+
export const config: CustomProjectConfig = {
4+
pageShots: {
5+
pages: [{ path: '/', name: 'landing' }],
6+
baseUrl: 'http://172.17.0.1:3000'
7+
},
8+
lostPixelProjectId: 'clud602ae10romo0e861bvpv2',
9+
apiKey: process.env.LOST_PIXEL_API_KEY
10+
}

0 commit comments

Comments
 (0)