Skip to content

Run Tests

Run Tests #157

Workflow file for this run

name: Run Tests
on:
push:
branches:
- "*"
jobs:
tests:
name: Tests
runs-on: ubuntu-latest
timeout-minutes: 5
# local sqld instance for "turso dev"
services:
sqld:
image: ghcr.io/libsql/sqld:latest
ports:
- 8080:8080
env:
ENVIRONMENT: DEV
TURSO_DEV_DATABASE_URL: http://127.0.0.1:8080
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20.9.0
- name: Install bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install dependencies
run: bun i
- name: Create .dev.vars file
run: |
echo ENVIRONMENT=$ENVIRONMENT >> .dev.vars
echo TURSO_DEV_DATABASE_URL=$TURSO_DEV_DATABASE_URL >> .dev.vars
- name: Initialize Drizzle
run: bun run drizzle:dev:init