Skip to content

Rename package to @oxia/client #9

Rename package to @oxia/client

Rename package to @oxia/client #9

Workflow file for this run

name: CI
on:
pull_request:
branches: [main]
push:
branches: [main]
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
permissions:
contents: read
jobs:
lint:
name: Lint & typecheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: arduino/setup-protoc@v3
with:
version: '27.x'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- run: npm ci
- name: Generate proto code
run: npm run gen-proto
- name: Lint (biome)
run: npm run lint
- name: Typecheck
run: npx tsc --noEmit -p tsconfig.json
test:
name: Test (Node ${{ matrix.node }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node: [18, 20, 22, 24, 25]
steps:
- uses: actions/checkout@v4
- uses: arduino/setup-protoc@v3
with:
version: '27.x'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: 'npm'
- run: npm ci
- name: Generate proto code
run: npm run gen-proto
- name: Pre-pull oxia image
# testcontainers pulls on demand, but doing it up front keeps the
# per-test startup tight and surfaces registry issues cleanly.
run: docker pull oxia/oxia:latest
- name: Run tests
run: npm test