-
-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (42 loc) · 1.15 KB
/
test.yml
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
47
48
49
name: test
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['16', '18']
steps:
- name: checkout
uses: actions/checkout@v2
- name: setup Node v${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: install & start PostgreSQL with PostGIS
# pin to commit that changes it to use the postgis/postgis Docker image, which we need for PostgreSQL version 14
uses: huaxk/postgis-action@0e3a7a41c0b06b9a1fe690d937f21168af8839bd
with:
postgresql password: password
postgresql user: postgres
postgresql db: postgres
postgresql version: '14-3.2-alpine'
- name: install & start Redis
uses: supercharge/[email protected]
# with:
# redis-version: ${{ matrix.redis-version }}
- run: npm install
- run: npm run lint
- run: npm test
env:
PGHOST: localhost
PGPORT: '5432'
PGUSER: postgres
PGPASSWORD: password
PGDATABASE: postgres