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 build pipeline for gh actions #61

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all 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
62 changes: 62 additions & 0 deletions .github/workflows/build-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Build & Test Topn

on:
push:
branches:
- "**"

workflow_dispatch:

jobs:
build_package:
name: Build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
PGVERSION:
- 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: |
./test_data_provider
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: |
citus_indent --quiet --check
config_and_start_cluster
env:
PGVERSION: ${{ matrix.PGVERSION }}

- name: Script
run: |
pg_travis_test
env:
PGVERSION: ${{ matrix.PGVERSION }}