-
Notifications
You must be signed in to change notification settings - Fork 55
30 lines (27 loc) · 831 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
name: CI
on:
push:
branches: ['*']
pull_request:
branches: ['*']
jobs:
test:
strategy:
fail-fast: false
matrix:
pg: [14, 13, 12, 11]
check_code: ["false", "clang"]
name: Test clickhouse_fdw
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Pull `clickhouse`
run: docker-compose pull clickhouse
- name: Run `clickhouse`
run: docker-compose up -d
- 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