Skip to content

add likes usecase and domains #1

add likes usecase and domains

add likes usecase and domains #1

Workflow file for this run

name: Continuous Integration
on:
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
services:
postgres:
image: postgres
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: mysecretpassword
POSTGRES_DB: forumapi_test
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: npm install migrate and test
run: |
npm install
npm run migrate up
npm run test
env:
CI: true
HOST: localhost
PORT: 3000
PGHOST: localhost
PGPORT: 5432
PGUSER: postgres
PGPASSWORD: mysecretpassword
PGDATABASE: forumapi_test
ACCESS_TOKEN_KEY: secret
REFRESH_TOKEN_KEY: terces
ACCESS_TOKEN_AGE: 3600