Skip to content

chore(deps): bump the github-actions group across 1 directory with 2 updates #30

chore(deps): bump the github-actions group across 1 directory with 2 updates

chore(deps): bump the github-actions group across 1 directory with 2 updates #30

Workflow file for this run

name: CI
on:
push:
branches: ["**"]
pull_request:
branches: ["**"]
jobs:
test:
name: Test
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.0.2
with:
bun-version: "1.2.21"
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: "22"
- name: Start SurrealDB
run: |
docker run -d --name surrealdb \
-p 4321:8000 \
-e SURREAL_CAPS_ALLOW_EXPERIMENTAL='*' \
surrealdb/surrealdb:v3.1.4 \
start --user root --pass root --bind 0.0.0.0:8000 memory
timeout 30 sh -c 'until curl -sf http://localhost:4321/health; do sleep 1; done'
docker logs surrealdb
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Lint
run: bun run lint
- name: Test
timeout-minutes: 5
run: npx vitest run --reporter=verbose
env:
SURREAL_URL: ws://127.0.0.1:4321
SURREAL_USER: root
SURREAL_PASS: root
- name: SurrealDB logs (on failure)
if: failure()
run: docker logs surrealdb