-
Notifications
You must be signed in to change notification settings - Fork 42
39 lines (38 loc) · 1.15 KB
/
pgmemento-test-upgrade.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
name: pgmemento-test-upgrade
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
pg: [11, 12, 13, 14, 15]
services:
postgres:
image: postgis/postgis:${{ matrix.pg }}-3.3
env:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_PORT: 5432
ports:
- 5432:5432
# needed because the postgres container does not provide a healthcheck
options: --health-cmd pg_isready --health-interval 20s --health-timeout 10s --health-retries 5
steps:
- uses: actions/checkout@v2
with:
ref: refs/tags/v0.7.3
- name: create new empty database of v0.7.3
run: |
psql -d postgresql://postgres@localhost/postgres -U postgres -tc "create database pgmemento_testdb"
env:
PGPASSWORD: password
- name: run pgmemento tests and upgrade to v0.7.4
run: |
psql -d postgresql://postgres@localhost/pgmemento_testdb -U postgres -a -f TEST.sql
env:
PGPASSWORD: password