Add postgresql12 ci
This commit is contained in:
@@ -1,8 +1,14 @@
|
|||||||
name: data-services PR testing
|
name: data-services PR testing
|
||||||
on: push
|
on: push
|
||||||
jobs:
|
jobs:
|
||||||
data-services-pg10:
|
data-services:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
pg_version: [10, 12]
|
||||||
|
env:
|
||||||
|
PG_VERSION: ${{ matrix.pg_version }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
|
|
||||||
@@ -12,7 +18,7 @@ jobs:
|
|||||||
service_account_key: ${{ secrets.GCS }}
|
service_account_key: ${{ secrets.GCS }}
|
||||||
|
|
||||||
- name: Pull base image
|
- 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
|
- name: Checkout ci tools repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
@@ -25,8 +31,8 @@ jobs:
|
|||||||
run: cp ci-tools/repos/${{ github.event.repository.name }}/* .
|
run: cp ci-tools/repos/${{ github.event.repository.name }}/* .
|
||||||
|
|
||||||
- name: Start docker-compose services
|
- 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
|
- 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
|
timeout-minutes: 5
|
||||||
|
|||||||
Reference in New Issue
Block a user