build(deps-dev): bump @types/node from 22.1.0 to 22.2.0 #285
Workflow file for this run
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 the PR | |
on: | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build-and-test: | |
name: Build and test with Node.js ${{ matrix.node-version }} and ${{ matrix.db }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18, 20] # See supported Node.js release schedule at https://nodejs.org/en/about/releases | |
db: [postgresql, mysql, mongodb, sqlite] | |
env: | |
DB_PROVIDER: ${{ matrix.db }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install modules | |
run: npm ci | |
- name: Check code formatting | |
run: npm run lint | |
- name: Generate Prisma Client | |
run: npm run prisma:gen | |
- name: Build | |
run: npm run build | |
- name: Run unit tests | |
run: npm run test |