Skip to content

Update test CI to works with PR from forked repo #3

Update test CI to works with PR from forked repo

Update test CI to works with PR from forked repo #3

Workflow file for this run

name: "Test the PR"
on:
pull_request:
branches:
- main
jobs:
run_test:
name: "Run tests"
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases
steps:
- uses: actions/checkout@v3
- name: Install modules
run: npm ci
- name: Generate Prisma Client
run: npm run prisma:gen
env:
DB_PROVIDER: ${{ vars.DB_PROVIDER }}
- name: Run unit tests
run: npm run test
- name: Build
run: npm run build