Generate empty client #9
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
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 |