Skip to content

Merge pull request #71 from batjko/add-book-tests #219

Merge pull request #71 from batjko/add-book-tests

Merge pull request #71 from batjko/add-book-tests #219

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Run tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
# Node 20+ required by Apollo Server 5 and Prisma 7
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npx prisma generate
- run: npm test