-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(tools): #21 run lost pixel github action
- Loading branch information
1 parent
77e0955
commit 23c181a
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
}; |