fix: smaller bugs (#1135) #2304
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
# 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 |