Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: test PostgreSQL HEAD versions in branch CI jobs
Browse files Browse the repository at this point in the history
vlsi committed Jan 28, 2025
1 parent a1c9e87 commit eb96597
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -125,6 +125,7 @@ jobs:
env:
MATRIX_JOBS: 5
GITHUB_PR_NUMBER: ${{ github.event.number }}
GITHUB_REF: ${{ github.ref }}
RNG_SEED: ${{ github.event.inputs.matrix_rng_seed }}
steps:
- uses: actions/checkout@v4
9 changes: 9 additions & 0 deletions .github/workflows/matrix.mjs
Original file line number Diff line number Diff line change
@@ -72,6 +72,12 @@ matrix.addAxis({
]
});

const addHeadPgVersion = (process.env.GITHUB_REF || '').startsWith('refs/heads/');

if (addHeadPgVersion) {
matrix.axisByName.pg_version.values.push('HEAD')
}

matrix.addAxis({
name: 'tz',
title: x => 'client_tz ' + x,
@@ -235,6 +241,9 @@ matrix.generateRow({java_version: eaJava});
// Ensure we have a job with the minimal and maximal PostgreSQL versions
matrix.generateRow({pg_version: matrix.axisByName.pg_version.values[0]});
matrix.generateRow({pg_version: matrix.axisByName.pg_version.values.slice(-1)[0]});
if (addHeadPgVersion) {
matrix.generateRow({pg_version: matrix.axisByName.pg_version.values.slice(-2)[0]});
}
//Ensure at least one job with "simple" query_mode exists
matrix.generateRow({query_mode: {value: 'simple'}});
// Ensure there will be at least one job with minimal supported Java

0 comments on commit eb96597

Please sign in to comment.