Update dependencies in sveltekit package #237
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: CI | |
on: push | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
# Docker Hub image | |
image: postgres | |
# Provide the password for postgres | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 5432:5432 | |
env: | |
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/auth-stripe-sveltekit | |
DOMAIN: http://localhost:5173 | |
SECRET_STRIPE_KEY: sk_fake | |
STRIPE_MOCK_HOST: localhost | |
STRIPE_MOCK_PORT: 12111 | |
AUTH_SECRET: 'tFCCrOEP7hPbDBRtkuTadnykvDluXg0zRO9nED6uEq0=' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- name: Setup PNPM | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Install dependencies | |
run: pnpm install | |
- name: Setup database | |
working-directory: ./packages/sveltekit | |
run: pnpm prisma db push | |
- name: Install Playwright browsers | |
working-directory: ./packages/sveltekit | |
run: pnpm exec playwright install chromium --with-deps | |
# - name: Start containers | |
# run: docker compose up --detach | |
- name: Test | |
run: pnpm test |