Astro docs #2200
Workflow file for this run
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 |