Skip to content

Generate empty client #9

Generate empty client

Generate empty client #9

Workflow file for this run

name: Test
on:
pull_request:
push:
branches:
- '*'
jobs:
rust-unit:
name: Rust unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.81.0
- name: Run tests
run: cargo test
js-unit:
name: JavaScript unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: '22.x'
cache: 'npm'
cache-dependency-path: js/package-lock.json
- name: Install dependencies
run: |
cd js && npm ci
- name: Run tests
run: |
cd js && \
mkdir prisma && \
cp fixtures/schema.prisma ./prisma/ && \
prisma generate && \
npm run test