From 19cfdd26ebb0535a84b0535667eaecaa118d85de Mon Sep 17 00:00:00 2001 From: Benjie Gillam Date: Wed, 17 Jan 2024 12:56:37 +0000 Subject: [PATCH 1/3] Run CI on multiple OSs --- .github/workflows/ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7404fa3e..935a26bf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,12 +11,16 @@ env: jobs: test: - runs-on: ubuntu-latest - strategy: matrix: node-version: [20.x] postgres-version: [12, 13, 14, 15] + os: + - ubuntu-latest + - windows-latest + - macos-latest + + runs-on: ${{ matrix.os }} services: postgres: From 627f46ed8f14037a01313deb6a045f6de62d901d Mon Sep 17 00:00:00 2001 From: Benjie Gillam Date: Wed, 17 Jan 2024 13:03:02 +0000 Subject: [PATCH 2/3] Don't need to run all combos on all OSs --- .github/workflows/ci.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 935a26bf..d7d1d051 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,11 +14,18 @@ jobs: strategy: matrix: node-version: [20.x] - postgres-version: [12, 13, 14, 15] + postgres-version: [15] os: - ubuntu-latest - windows-latest - macos-latest + include: + - os: ubuntu-latest + postgres-version: 12 + - os: ubuntu-latest + postgres-version: 13 + - os: ubuntu-latest + postgres-version: 14 runs-on: ${{ matrix.os }} From 928a3fda7c6e9d135fb57827e62c8177bb92415e Mon Sep 17 00:00:00 2001 From: Benjie Gillam Date: Wed, 17 Jan 2024 17:31:51 +0000 Subject: [PATCH 3/3] Specify node-version in includes --- .github/workflows/ci.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d7d1d051..7ce5d5c0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,11 +20,14 @@ jobs: - windows-latest - macos-latest include: - - os: ubuntu-latest + - node-version: 20.x + os: ubuntu-latest postgres-version: 12 - - os: ubuntu-latest + - node-version: 20.x + os: ubuntu-latest postgres-version: 13 - - os: ubuntu-latest + - node-version: 20.x + os: ubuntu-latest postgres-version: 14 runs-on: ${{ matrix.os }}