-
Notifications
You must be signed in to change notification settings - Fork 12
46 lines (41 loc) · 1019 Bytes
/
test-jest.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: "[Test] run jest tests (unit and integration)"
on:
pull_request:
branches:
- main
jobs:
build:
name: Run jest tests on all packages
timeout-minutes: 15
runs-on: ubuntu-latest
services:
postgres:
image: postgres:15.2
env:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: root
POSTGRES_HOST_AUTH_METHOD: trust
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: "yarn"
- name: Install dependencies
run: yarn
- name: Run tests
env:
TEST_DB_HOST: "postgres"
run: yarn turbo:test