feat: fabricator pages for biomes #13
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
name: gav0 playwright tests | |
on: | |
push: | |
branches: [main] | |
# paths: | |
# - 'apps/demo02-presence/**' | |
pull_request: | |
branches: [main] | |
# paths: | |
# - 'apps/demo02-presence/**' | |
env: | |
WORKSPACE: 'gav0' | |
WORKSPACE_PATH: 'apps/gav0' | |
jobs: | |
test: | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: 9.5 | |
- name: Cache pnpm store | |
uses: actions/cache@v3 | |
with: | |
path: ~/.pnpm-store | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm-store- | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: Build and Install dependencies | |
run: | | |
pnpm -F chainpresence install | |
pnpm -F chainpresence run build | |
pnpm -F ${WORKSPACE} install | |
- name: Build the app | |
run: pnpm -F ${WORKSPACE} run build | |
- name: Install Playwright Browsers | |
run: pnpm -F ${WORKSPACE} exec playwright install --with-deps | |
working-directory: ${{ env.WORKSPACE_PATH }} | |
- name: Run Playwright tests | |
run: pnpm -F ${WORKSPACE} run test:integration | |
# working-directory: ${{ env.WORKSPACE_PATH }} | |
- uses: actions/upload-artifact@v4 | |
if: ${{ !cancelled() }} | |
with: | |
name: demo02-presence-playwright-report | |
path: ${{ env.WORKSPACE_PATH }}/playwright-report/ | |
retention-days: 10 |