Skip to content

Fix/Validators according to db #314

Fix/Validators according to db

Fix/Validators according to db #314

Workflow file for this run

name: Node.js CI
on:
pull_request:
branches:
- develop
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install PNPM
run: npm install -g pnpm
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
- name: Check for leaked secrets
uses: zricethezav/[email protected]
- name: Prisma Generate
run: pnpm run prisma:generate
- name: Linter
run: pnpm run lint
- name: Compile
run: pnpm run build
- name: Run Tests
id: run_tests
run: |
if pnpm test; then
echo "Tests passed successfully" > test_results.md
echo "::set-output name=result::$(cat test_results.md)"
else
echo "Tests failed" > test_results.md
echo "::set-output name=result::$(cat test_results.md)"
exit 1
fi
env:
CI: true
FIREBASE_PRIVATE_KEY: ${{ secrets.FIREBASE_PRIVATE_KEY }}