Skip to content

fix: user

fix: user #2317

Workflow file for this run

# https://github.com/kentcdodds/kentcdodds.com/blob/main/.github/workflows/deployment.yml
name: Tests
on:
push:
branches:
- "main"
pull_request:
branches: [main]
jobs:
tests:
name: 🧪 Tests
runs-on: ubuntu-latest
timeout-minutes: 15
services:
sqld:
image: ghcr.io/tursodatabase/libsql-server:latest
ports:
- 8080:8080
# env:
# SQLD_HTTP_AUTH: "basic:token"
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
DATABASE_URL: http://127.0.0.1:8080
DATABASE_AUTH_TOKEN: "basic:token"
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
version: 9.1.4
- name: ⎔ Setup node
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- name: 🔥 Install bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: 📥 Download deps
run: pnpm install
- name: 🗃️ Run migrations
run: pnpm migrate
working-directory: ./packages/db
- name: 💽 Seed database
run: pnpm seed
working-directory: ./packages/db
- name: 🧪 Tests
run: pnpm test