From af848aa65b1a79d39710de45fa3755ae97b3e6f6 Mon Sep 17 00:00:00 2001 From: ibrahim Date: Thu, 6 Feb 2020 13:11:53 +0100 Subject: [PATCH] Add postgresql12 ci --- .github/workflows/main.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 55bf76a..ffe39c0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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