forked from alrocar/clickhouse_fdw
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 969 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: CI
on:
push:
branches: ['*']
pull_request:
branches: ['*']
jobs:
test:
strategy:
fail-fast: false
matrix:
pg: [14]
check_code: ["false", "clang"]
name: Test clickhouse_fdw
runs-on: ubuntu-latest
container: docker:latest
services:
clickhouse:
image: clickhouse/clickhouse-server:latest
ports:
- 8123:8123
- 9000:9000
options: >-
--health-cmd "clickhouse-client --host localhost --query 'SELECT 1'"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v2
- 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