-
Notifications
You must be signed in to change notification settings - Fork 78
102 lines (86 loc) · 2.25 KB
/
run-tests.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: Run Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build_package:
name: Run tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
PGVERSION:
- 16
TEST:
- ci
- pagila
- pagila-multi-steps
- pagila-standby
- unit
- blobs
- filtering
- extensions
- timescaledb
- cdc-low-level
- cdc-test-decoding
- cdc-endpos-between-transaction
- cdc-wal2json
- follow-wal2json
- follow-9.6
- follow-data-only
- endpos-in-multi-wal-txn
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # all history for all branches and tags
- name: Set Version String From .git
run: make version
- name: Set environment variables
run: |
echo "TEST=${{ matrix.TEST }}" >> $GITHUB_ENV
- name: Create docker volumes
run: |
docker volume create ${TEST}
- name: List docker volumes
run: |
docker volume ls
- name: Docker Compose Version
run: |
docker compose version
- name: Run a test
timeout-minutes: 5
run: |
make tests/${TEST}
style_checker:
runs-on: ubuntu-latest
container: citus/stylechecker:no-py
steps:
- uses: actions/[email protected]
name: Checkout code
- name: Set safe directory for git
run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
- name: Check C style
run: citus_indent --check
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build docs
uses: ammaraskar/sphinx-action@master
with:
docs-folder: "docs/"
- name: Set Version String From .git
run: make version
- name: Check that docs are up to date
run: |
cat Dockerfile ci/Dockerfile.docs.template > ci/Dockerfile.docs && \
docker build --file=ci/Dockerfile.docs --tag test-docs . && \
docker run test-docs