Run prisma migration (#236) #113
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: Developement Pipeline | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
backend_tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "18.16.0" | |
- name: Install backend dependencies | |
working-directory: ./server | |
run: npm ci | |
- name: Run backend linter | |
working-directory: ./server | |
run: npm run lint | |
- name: Run backend prettier checks | |
working-directory: ./server | |
run: npm run format:check | |
- name: Build backend | |
working-directory: ./server | |
run: npm run build | |
frontend_tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "18" | |
- name: Install frontend dependencies | |
working-directory: ./web | |
run: npm ci | |
- name: Run frontend linter | |
working-directory: ./web | |
run: npm run lint | |
- name: Run frontend prettier checks | |
working-directory: ./web | |
run: npm run format:check | |
- name: Build frontend | |
working-directory: ./web | |
run: npm run build |