-
Notifications
You must be signed in to change notification settings - Fork 9
39 lines (32 loc) · 746 Bytes
/
test.yml
File metadata and controls
39 lines (32 loc) · 746 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
name: Test
on:
pull_request:
branches:
- 'master'
push:
branches:
- 'master'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14, 16, 18, 20]
services:
postgres:
image: postgres:11.5
ports: ["5432:5432"]
env:
POSTGRES_USER: postgres
POSTGRES_DB: tinypg_test
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Test
run: |
npm ci
npm run test