Initialize Prisma, including migrations, testing and DB connections #7
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: Build and Test Backend | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
workflow_dispatch: | |
defaults: | |
run: | |
working-directory: ./backend | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v2 | |
- name: Setup Node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 23 | |
- name: Clean install dependencies | |
run: npm ci --legacy-peer-deps | |
- name: Build codebase | |
run: npm run build | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v2 | |
- name: Setup Node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 23 | |
- name: Clean install dependencies | |
run: npm ci --legacy-peer-deps | |
- name: Run tests | |
run: npm test |