-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (37 loc) · 995 Bytes
/
Copy pathpull_request.yml
File metadata and controls
45 lines (37 loc) · 995 Bytes
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
on: pull_request
name: API - pull request tests
jobs:
test:
name: Pull request tests
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [19.x]
services:
postgres:
image: postgres:15
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: be_api_test_db
ports:
- 5432:5432
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Check types
run: npm run test:tsc
- name: Test
run: npm run test