Skip to content

Commit edc96c3

Browse files
committed
Adds gh actions pipeline for build & test
1 parent 8b9821c commit edc96c3

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Build & Test HLL
2+
3+
env:
4+
- PG_PRELOAD=hll
5+
on:
6+
push:
7+
branches:
8+
- "**"
9+
10+
workflow_dispatch:
11+
12+
jobs:
13+
build_package:
14+
name: Build
15+
runs-on: ubuntu-latest
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
PGVERSION:
20+
- 9.4
21+
- 9.5
22+
- 9.6
23+
- 10
24+
- 11
25+
- 12
26+
- 13
27+
- 14
28+
- 15
29+
30+
steps:
31+
- name: Checkout repository
32+
uses: actions/checkout@v2
33+
34+
- name: Clone tools branch
35+
run: git clone -b v0.8.18 --depth=1 https://github.com/citusdata/tools.git tools
36+
37+
- name: Install package dependencies
38+
run: sudo apt-get update && sudo apt-get install libcurl4-openssl-dev libssl-dev python3-testresources
39+
40+
41+
- name: Before Install
42+
run: |
43+
sudo make -C tools install
44+
setup_apt
45+
nuke_pg
46+
47+
- name: Install
48+
run: |
49+
install_uncrustify
50+
install_pg
51+
52+
- name: Before Script
53+
run: |
54+
config_and_start_cluster
55+
echo "extra_float_digits = 0" >> "/etc/postgresql/${PGVERSION}/test/postgresql.conf"
56+
pg_ctlcluster "${PGVERSION}" test restart
57+
58+
- name: Script
59+
run: |
60+
pg_travis_test

0 commit comments

Comments
 (0)