Skip to content
26 changes: 22 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,25 @@ jobs:
CI: true
- run: bash <(curl -s https://codecov.io/bash)
check-postgres:
name: Postgresql
strategy:
matrix:
include:
- name: Postgres 10, Postgis 3.1
POSTGRES_IMAGE: postgis/postgis:10-3.1
POSTGRES_MAJOR_VERSION: 10
- name: Postgres 11, Postgis 3.1
POSTGRES_IMAGE: postgis/postgis:11-3.1
POSTGRES_MAJOR_VERSION: 11
- name: Postgres 12, Postgis 3.1
Comment thread
mtrezza marked this conversation as resolved.
POSTGRES_IMAGE: postgis/postgis:12-3.1
POSTGRES_MAJOR_VERSION: 12
- name: Postgres 12, Postgis 3.0
POSTGRES_IMAGE: postgis/postgis:12-3.0
POSTGRES_MAJOR_VERSION: 12
- name: Postgres 13, Postgis 3.1
POSTGRES_IMAGE: postgis/postgis:13-3.1
POSTGRES_MAJOR_VERSION: 13
name: ${{ matrix.name }}
timeout-minutes: 30
runs-on: ubuntu-18.04
services:
Expand All @@ -113,7 +131,7 @@ jobs:
ports:
- 6379:6379
postgres:
image: postgis/postgis:11-3.0
image: ${{ matrix.POSTGRES_IMAGE }}
env:
POSTGRES_PASSWORD: postgres
ports:
Expand All @@ -125,7 +143,7 @@ jobs:
--health-retries 5
env:
PARSE_SERVER_TEST_DB: postgres
POSTGRES_MAJOR_VERSION: 11
POSTGRES_MAJOR_VERSION: ${{ matrix.POSTGRES_MAJOR_VERSION }}
PARSE_SERVER_TEST_DATABASE_URI: postgres://postgres:postgres@localhost:5432/parse_server_postgres_adapter_test_database
steps:
- uses: actions/checkout@v2
Expand All @@ -146,4 +164,4 @@ jobs:
- run: npm run coverage
env:
CI: true
- run: bash <(curl -s https://codecov.io/bash)
- run: bash <(curl -s https://codecov.io/bash)