forked from musa-5090-spring-2024/assignment01
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (42 loc) · 1.19 KB
/
test-query08.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
name: Test Query 08
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
# Use the postgis image to start a postgres service
#
# See the following links for more information:
# https://hub.docker.com/_/postgis
# https://docs.github.com/en/actions/guides/about-service-containers
# https://docs.github.com/en/actions/guides/creating-postgresql-service-containers
services:
postgres:
image: postgis/postgis
env:
POSTGRES_PASSWORD: postgres
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v3
- name: Set up Node.js 16.x
uses: actions/setup-node@v2
with:
node-version: 16.x
cache: 'npm'
- name: Install JS dependencies
run: npm install
- name: Install GDAL (for ogr2ogr)
run: sudo apt install gdal-bin -y
- name: Load test data
run: __scripts__/load_data.sh
- name: Run tests
run: |
npm test __tests__/test_query08.js