From 0875521583e064e2f5e8f442e642108c641f41cd Mon Sep 17 00:00:00 2001 From: jnasbyupgrade Date: Wed, 11 Jun 2025 17:34:30 -0500 Subject: [PATCH 1/4] Setup new automated tests Travis CI is long dead; switch to pgxn-tools. --- .github/workflows/ci.yml | 17 +++++++++++++++++ .travis.yml | 12 ------------ README.md | 7 ++----- 3 files changed, 19 insertions(+), 17 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..b889baa --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,17 @@ +name: CI +on: [push, pull_request] +jobs: + test: + strategy: + matrix: + pg: [17, 16, 15, 14, 13, 12, 11, 10, 9.6, 9.5, 9.4, 9.3, 9.2, 9.1, 9.0, 8.4, 8.3, 8.2] + name: 🐘 PostgreSQL ${{ matrix.pg }} + runs-on: ubuntu-latest + container: pgxn/pgxn-tools + steps: + - name: Start PostgreSQL ${{ matrix.pg }} + run: pg-start ${{ matrix.pg }} + - name: Check out the repo + uses: actions/checkout@v4 + - name: Test on PostgreSQL ${{ matrix.pg }} + run: pg-build-test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index fb1b813..0000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: c -before_install: - - wget https://gist.github.com/petere/5893799/raw/apt.postgresql.org.sh - - wget https://gist.github.com/petere/6023944/raw/pg-travis-test.sh - - sudo sh ./apt.postgresql.org.sh -env: - - PGVERSION=9.1 - - PGVERSION=9.2 - - PGVERSION=9.3 - - PGVERSION=9.4 - - PGVERSION=9.5 -script: bash ./pg-travis-test.sh diff --git a/README.md b/README.md index 5fa3563..fafece8 100644 --- a/README.md +++ b/README.md @@ -5,11 +5,8 @@ A system for managing unit test data in Postgres. Documentation for the most recent version is on [PGXN](http://pgxn.org/dist/test_factory/doc/test_factory.html). -Current Status -============== -You can see the current status of *released* versions of this extension on [PGXN-tester](http://pgxn-tester.org/distributions/test_factory). - -Travis-CI status: [![Build Status](https://travis-ci.org/BlueTreble/test_factory.png)](https://travis-ci.org/BlueTreble/test_factory) +[![PGXN version](https://badge.fury.io/pg/test_factory.svg)](https://badge.fury.io/pg/test_factory) +[![🐘 Postgres](https://github.com/decibel/test_factory/actions/workflows/ci.yml/badge.svg)](https://github.com/decibel/test_factory/actions/workflows/ci.yml) Easy Installation ================= From d84a2d007935e43bd00992c302471d85960e8cf3 Mon Sep 17 00:00:00 2001 From: Jim Nasby Date: Wed, 11 Jun 2025 18:07:12 -0500 Subject: [PATCH 2/4] Test fewer versions --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b889baa..d4aaec9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,7 @@ jobs: test: strategy: matrix: - pg: [17, 16, 15, 14, 13, 12, 11, 10, 9.6, 9.5, 9.4, 9.3, 9.2, 9.1, 9.0, 8.4, 8.3, 8.2] + pg: [17, 16, 15, 14, 13, 12, 11, 10] name: 🐘 PostgreSQL ${{ matrix.pg }} runs-on: ubuntu-latest container: pgxn/pgxn-tools From 1d92eb1c0f570905eaa8e2e38373055670c0d045 Mon Sep 17 00:00:00 2001 From: Jim Nasby Date: Wed, 11 Jun 2025 18:09:39 -0500 Subject: [PATCH 3/4] Revert "Test fewer versions" This reverts commit d84a2d007935e43bd00992c302471d85960e8cf3. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d4aaec9..b889baa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,7 @@ jobs: test: strategy: matrix: - pg: [17, 16, 15, 14, 13, 12, 11, 10] + pg: [17, 16, 15, 14, 13, 12, 11, 10, 9.6, 9.5, 9.4, 9.3, 9.2, 9.1, 9.0, 8.4, 8.3, 8.2] name: 🐘 PostgreSQL ${{ matrix.pg }} runs-on: ubuntu-latest container: pgxn/pgxn-tools From 0fa29301a475920ce253c53ee35e3cb9aee403c7 Mon Sep 17 00:00:00 2001 From: Jim Nasby Date: Wed, 11 Jun 2025 18:13:45 -0500 Subject: [PATCH 4/4] Reapply "Test fewer versions" This reverts commit 1d92eb1c0f570905eaa8e2e38373055670c0d045. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b889baa..d4aaec9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,7 @@ jobs: test: strategy: matrix: - pg: [17, 16, 15, 14, 13, 12, 11, 10, 9.6, 9.5, 9.4, 9.3, 9.2, 9.1, 9.0, 8.4, 8.3, 8.2] + pg: [17, 16, 15, 14, 13, 12, 11, 10] name: 🐘 PostgreSQL ${{ matrix.pg }} runs-on: ubuntu-latest container: pgxn/pgxn-tools