Skip to content

add husky

add husky #11

Workflow file for this run

name: Run E2E Tests
on: [pull_request]
jobs:
run-e2e-tests:
name: Run E2E Tests
environment: production
runs-on: ubuntu-latest
services:
postgres:
image: bitnami/postgresql
ports:
- 5432:5432
env:
POSTGRESQL_USERNAME: docker
POSTGRESQL_PASSWORD: docker
POSTGRESQL_DATABASE: project
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Cache dependencies
uses: actions/cache@v2
with:
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
path: node_modules
- name: Use Node
uses: actions/setup-node@v3
with:
node-version: 19.0.1
- run: npm i --force
- run: npm run test:e2e
env:
DATABASE_URL: 'postgresql://docker:docker@localhost:5432/project?schema=public'
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}