Skip to content

[TCES-18] Connecting Supabase database to the current codebase from the old PlanetScale database #465

[TCES-18] Connecting Supabase database to the current codebase from the old PlanetScale database

[TCES-18] Connecting Supabase database to the current codebase from the old PlanetScale database #465

name: Automated Server PR Tests and Lint
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
server-tests-and-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
env:
DATABASE_USERNAME: ${{ secrets.DATABASE_USERNAME }}
DATABASE_PASSWORD: ${{ secrets.DATABASE_PASSWORD }}
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install server dependencies
run: |
cd server
npm install
mv .env.example .env
- name: Run server tests
run: |
cd server
NODE_OPTIONS=--unhandled-rejections=strict npm run test
- name: Run server linter
run: |
cd server
npm run lint