You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.2 KiB
40 lines
1.2 KiB
name: data-services PR testing
|
|
on: push
|
|
jobs:
|
|
data-services:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
pg_version: [10, 12]
|
|
env:
|
|
PG_VERSION: ${{ matrix.pg_version }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Set up docker registry
|
|
env:
|
|
SA_TO_USE: ${{ secrets.GCS }}
|
|
run: |
|
|
echo "${SA_TO_USE}" | base64 -d | docker login -u _json_key --password-stdin https://gcr.io
|
|
|
|
- name: Pull base image
|
|
run: docker pull gcr.io/cartodb-on-gcp-ci-testing/cartodb-postgresql-base:${{ matrix.pg_version }}
|
|
|
|
- name: Checkout ci tools repository
|
|
uses: actions/checkout@v2
|
|
with:
|
|
repository: CartoDB/ci-tools
|
|
path: ci-tools
|
|
token: ${{ secrets.CARTOFANTE_PAT }}
|
|
|
|
- name: Copy ci files to root
|
|
run: cp ci-tools/repos/${{ github.event.repository.name }}/* .
|
|
|
|
- name: Start docker-compose services
|
|
run: docker-compose -f docker-compose.yaml up -d
|
|
|
|
- name: Run tests
|
|
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
|