From 7a3b890246790c52efb45f56202af9a9d0b2cb9d Mon Sep 17 00:00:00 2001 From: Manuel Kniep Date: Sun, 28 May 2023 00:27:00 +0200 Subject: [PATCH 1/2] Align CI workflow We want an improved aligned workflow setup for all our postgres extensions. This workflow will run tests after pushing commits into the main branch and into any open pull request's branch. It runs tests on PostgreSQL Versions 10 to 15. One important thing here is that the workflow uses pgxn/pgxn-tools Docker image. It installs specified version of PostgreSQL and run tests by pg-build-test, which runs make installcheck under the hood. --- .github/workflows/ci.yml | 23 ----------------------- .github/workflows/main.yml | 22 ++++++++++++++++++++++ 2 files changed, 22 insertions(+), 23 deletions(-) delete mode 100644 .github/workflows/ci.yml create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 67ef288..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: CI - -on: - push: - branches: ['*'] - pull_request: - branches: ['*'] - -jobs: - test: - strategy: - fail-fast: false - matrix: - pg: [13, 12] - name: PostgreSQL ${{ matrix.pg }} - runs-on: ubuntu-latest - container: zilder/pg-ext-check - - steps: - - run: pg-setup ${{ matrix.pg }} - - run: apt-get install liblz4-dev libzstd-dev - - uses: actions/checkout@v2 - - run: build-check diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..aca8b0d --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,22 @@ +name: CI + +on: + push: + branches: + - master + - main + pull_request: + +jobs: + test: + strategy: + matrix: + pg: [15, 14, 13, 12, 11, 10] + name: 🐘 PostgreSQL ${{ matrix.pg }} + runs-on: ubuntu-latest + container: pgxn/pgxn-tools + steps: + - run: pg-start ${{ matrix.pg }} + - uses: actions/checkout@v2 + - run: pg-build-test + From 034cfc079107d22d8d916b4e4afd2917694efd1b Mon Sep 17 00:00:00 2001 From: Manuel Kniep Date: Sun, 28 May 2023 00:27:00 +0200 Subject: [PATCH 2/2] add ci badge to README.md Let anyone see directly the current build status --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 7c86980..a977a3f 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![CI](https://github.com/adjust/pg_cryogen/actions/workflows/main.yml/badge.svg)](https://github.com/adjust/pg_cryogen/actions/workflows/main.yml) + [![Build Status](https://travis-ci.org/adjust/pg_cryogen.svg?branch=master)](https://travis-ci.org/adjust/pg_cryogen) ![experimental](https://img.shields.io/badge/status-experimental-orange) # pg_cryogen