ci: expose preview to host #5
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
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Lost Pixel | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install | |
- name: Build app | |
run: pnpm run build | |
env: | |
PLAYWRIGHT_TEST: 'true' | |
- name: Start server (in background) | |
run: pnpm run preview --host 172.17.0.1 & | |
- name: Lost Pixel | |
uses: lost-pixel/lost-pixel@v3.16.0 | |
env: | |
LOST_PIXEL_API_KEY: ${{ secrets.LOST_PIXEL_API_KEY }} |