Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds gh actions pipeline for build & test #136

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions .github/workflows/build-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Build & Test HLL

env:
PG_PRELOAD: hll
on:
push:
branches:
- "**"

workflow_dispatch:

jobs:
build_package:
name: Build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
PGVERSION:
- 9.4
- 9.5
- 9.6
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These PG versions are not supported anymore. We can drop them.

hanefi marked this conversation as resolved.
Show resolved Hide resolved
- 10
- 11
- 12
- 13
- 14
- 15

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Clone tools branch
run: git clone -b v0.8.18 --depth=1 https://github.com/citusdata/tools.git tools

- name: Install package dependencies
run: sudo apt-get update && sudo apt-get install libcurl4-openssl-dev libssl-dev python3-testresources


- name: Before Install
run: |
sudo make -C tools install
setup_apt
nuke_pg
env:
PGVERSION: ${{ matrix.PGVERSION }}

- name: Install
run: |
install_uncrustify
install_pg
env:
PGVERSION: ${{ matrix.PGVERSION }}

- name: Before Script
run: |
config_and_start_cluster
echo "extra_float_digits = 0" >> "/etc/postgresql/${PGVERSION}/test/postgresql.conf"
pg_ctlcluster "${PGVERSION}" test restart
env:
PGVERSION: ${{ matrix.PGVERSION }}

- name: Script
run: |
pg_travis_test
env:
PGVERSION: ${{ matrix.PGVERSION }}
1 change: 1 addition & 0 deletions sql/setup.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ ALTER EXTENSION hll UPDATE TO '2.13';
ALTER EXTENSION hll UPDATE TO '2.14';
ALTER EXTENSION hll UPDATE TO '2.15';
ALTER EXTENSION hll UPDATE TO '2.16';
ALTER EXTENSION hll UPDATE TO '2.17';