Skip to content

Commit

Permalink
yFix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesús Botella committed Sep 18, 2024
1 parent 6974a92 commit c42355e
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,26 @@ jobs:

name: Test clickhouse_fdw
runs-on: ubuntu-latest
container: docker:latest

services:
clickhouse:
image: clickhouse/clickhouse-server:latest
ports:
- 8123:8123
- 9000:9000
options: >-
--ulimit nofile=262144:262144
steps:
- uses: actions/checkout@v2
- name: Pull `clickhouse`
run: docker-compose pull clickhouse
- name: Run `clickhouse`
run: docker-compose up -d

- name: Wait for ClickHouse to be ready
run: |
timeout 30s bash -c 'until echo "SELECT 1" | curl http://localhost:8123 -d @- > /dev/null 2>&1; do sleep 1; done'
- name: Build an image with the source code
run: docker-compose -f docker-compose-extra.yml build --build-arg CHECK_CODE=${{ matrix.check_code }} --build-arg PG_VERSION=${{ matrix.pg }} tests

- name: Run the tests
run: docker-compose -f docker-compose-extra.yml run tests
- name: Stop clickhouse
run: docker-compose stop clickhouse

0 comments on commit c42355e

Please sign in to comment.