Skip to content

fix: CI container version pinning #5

fix: CI container version pinning

fix: CI container version pinning #5

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6
with:
bun-version: latest
- run: bun install --frozen-lockfile
- run: bun run check
build:
name: Build & typecheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6
with:
bun-version: latest
- run: bun install --frozen-lockfile
- run: bun run build
- run: bun run typecheck
test:
name: Test
runs-on: ubuntu-latest
services:
surrealdb:
image: surrealdb/surrealdb:v3.0.5
ports:
- 8000:8000
options: >-
--health-cmd "curl -sf http://localhost:8000/health"
--health-interval 5s
--health-timeout 3s
--health-retries 10
env:
SURREAL_USER: root
SURREAL_PASS: root
steps:
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6
with:
bun-version: latest
- run: bun install --frozen-lockfile
- run: bun run test
- run: bun run test:integration
env:
SURREALDB_URL: ws://localhost:8000
SURREALDB_USER: root
SURREALDB_PASS: root