V4 svelte capacitor #599
Workflow file for this run
This file contains hidden or 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: CI Pipeline | |
on: | |
push: | |
branches: | |
- main | |
- v4-svelte | |
pull_request: | |
branches: | |
- main | |
- v4-svelte | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup-environment | |
- name: Run ESLint and Prettier Check | |
run: pnpm run lint | |
playwright_tests: | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres:latest | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_DB: defaultdb | |
ports: | |
- 5432:5432 | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup-environment | |
- name: Set DATABASE_URL | |
run: echo "DATABASE_URL=postgresql://postgres:postgres@localhost:5432/defaultdb?sslmode=disable" >> .env | |
- name: Initialize database schema | |
run: | | |
pnpm exec prisma migrate deploy | |
pnpm exec prisma db seed | |
pnpm exec prisma generate --sql | |
- name: Generate AUTH_SECRET | |
run: echo "AUTH_SECRET=$(openssl rand -base64 33)" >> $GITHUB_ENV | |
- name: Run Svelte Check | |
run: pnpm run check | |
- name: Install Playwright Browsers | |
run: pnpm exec playwright install --with-deps | |
- name: Run Playwright tests | |
run: pnpm exec playwright test | |
- name: Upload Playwright report | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: playwright-report | |
path: playwright-report/ | |
retention-days: 30 | |
env: | |
AUTH_GOOGLE_ID: ${{ secrets.AUTH_GOOGLE_ID }} | |
AUTH_GOOGLE_SECRET: ${{ secrets.AUTH_GOOGLE_SECRET }} |