From 400795cb3b5075d0b431f23598717aa264d4d4c2 Mon Sep 17 00:00:00 2001 From: "David E. Wheeler" Date: Thu, 25 Jan 2024 13:53:45 -0500 Subject: [PATCH] Add CI workflow Builds and runs tests on Postgres 14 - 16. Couldn't get it to automatically init the submodule, so doing it manually. One test fails on my system; let's see if it works on GitHub. --- .github/workflows/ci.yml | 20 ++++++++++++++++++++ .gitignore | 1 + 2 files changed, 21 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..e3d80fb --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,20 @@ +name: CI +on: + push: + branches: ["*"] + pull_request: + schedule: + - cron: '0 12 15 * *' # Monthly at noon on the 15th +jobs: + build: + strategy: + matrix: + pg: [16, 15, 14] + name: 🐘 PostgreSQL ${{ matrix.pg }} + runs-on: ubuntu-latest + container: pgxn/pgxn-tools + steps: + - run: pg-start ${{ matrix.pg }} + - uses: actions/checkout@v4 + - run: git submodule update --init --recursive + - run: pg-build-test diff --git a/.gitignore b/.gitignore index e9c852b..22dbb6c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ *.o *.so +*.dylib results regression.diffs regression.out