twenty/.github/workflows/ci-server.yaml
Charles Bochet 2d758c990b
Fix merge issue flexible backend (#1685)
* Fix merge issue flexible backend

* Fix tests

* Try fix tests

* Try fix tests
2023-09-20 19:11:21 -07:00

40 lines
984 B
YAML

name: CI Server
on:
push:
branches:
- main
pull_request:
jobs:
server-test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres
env:
POSTGRES_HOST: postgres
POSTGRES_PASSWORD: twenty
POSTGRES_USER: twenty
POSTGRES_DB: test
POSTGRES_PORT: 5432
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "18"
- name: Server / Install Dependencies
run: cd server && yarn install
- name: Server / Run linter
run: cd server && yarn lint
- name: Server / Run jest tests
run: cd server && yarn test
- name: Server / Run e2e tests
run: cd server && yarn test:e2e