Skip to content

chore(deps-dev): bump the storybook group with 9 updates #492

chore(deps-dev): bump the storybook group with 9 updates

chore(deps-dev): bump the storybook group with 9 updates #492

Workflow file for this run

name: Playwright Tests
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
types:
- opened
- synchronize
- reopened
concurrency:
group: ${{ github.workflow }}-${{ github.pull_request.head.sha || github.sha }}
cancel-in-progress: true
jobs:
test-e2e:
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
DATABASE_URL: ${{ secrets.DATABASE_PREVIEW_URL }}
NEXTAUTH_URL: http://localhost:3000
NEXTAUTH_SECRET: supersecret
DISCORD_CLIENT_ID: STUBBED_ID
DISCORD_CLIENT_SECRET: STUBBED_SECRET
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup pnpm
uses: pnpm/action-setup@v2.2.4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "pnpm"
- name: Install deps (with cache)
run: pnpm install --frozen-lockfile
- uses: actions/cache@v3
id: playwright-cache
with:
path: |
~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ hashFiles('**/pnpm-lock.yaml') }}
- run: pnpm exec playwright install --with-deps
if: steps.playwright-cache.outputs.cache-hit != 'true'
- run: pnpm exec playwright install-deps
if: steps.playwright-cache.outputs.cache-hit == 'true'
- name: Create env file
run: |
touch .env
echo DATABASE_URL=${DATABASE_URL} >> .env
- name: turbo build
run: pnpm turbo run build
- name: Run Playwright tests
run: pnpm turbo run e2e
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30