Add postgresql12 ci

This commit is contained in:
ibrahim
2020-02-06 13:11:53 +01:00
parent 629a453516
commit af848aa65b

View File

@@ -1,8 +1,14 @@
name: data-services PR testing
on: push
jobs:
data-services-pg10:
data-services:
runs-on: ubuntu-latest
strategy:
matrix:
pg_version: [10, 12]
env:
PG_VERSION: ${{ matrix.pg_version }}
steps:
- uses: actions/checkout@v1
@@ -12,7 +18,7 @@ jobs:
service_account_key: ${{ secrets.GCS }}
- name: Pull base image
run: gcloud auth configure-docker && docker pull gcr.io/cartodb-on-gcp-ci-testing/cartodb-postgresql-base:10
run: gcloud auth configure-docker && docker pull gcr.io/cartodb-on-gcp-ci-testing/cartodb-postgresql-base:${{ matrix.pg_version }}
- name: Checkout ci tools repository
uses: actions/checkout@v2
@@ -25,8 +31,8 @@ jobs:
run: cp ci-tools/repos/${{ github.event.repository.name }}/* .
- name: Start docker-compose services
run: docker-compose -f docker-compose-pg10.yaml up -d
run: docker-compose -f docker-compose.yaml up -d
- name: Run tests
run: docker-compose -f docker-compose-pg10.yaml exec -T postgres-server bash -c "cd /data-services/geocoder/extension && make clean all install installcheck"
run: docker-compose -f docker-compose.yaml exec -T postgres-server bash -c "cd /data-services/geocoder/extension && make clean all install installcheck"
timeout-minutes: 5