Skip to content

Commit

Permalink
test: pg 13 and 14
Browse files Browse the repository at this point in the history
  • Loading branch information
steve-chavez committed Oct 21, 2023
1 parent 171a53b commit 106e51c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
pg-version: ['15']
pg-version: ['15', '14', '13']

steps:
- uses: actions/checkout@v3
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ nix-shell --run "with-pg-15 make installcheck"

# to interact with the local database with fixtures loaded
nix-shell --run "with-pg-15 psql contrib_regression"

# you can choose the pg version
nix-shell --run "with-pg-13 make installcheck"
```

## References
Expand Down
2 changes: 1 addition & 1 deletion shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ mkShell {
buildInputs =
let
extensionName = "postgrest_openapi";
supportedPgVersions = [ postgresql_15 ];
supportedPgVersions = [ postgresql_15 postgresql_14 postgresql_13 postgresql_12 postgresql_11 ];
pgWExtension = { postgresql }: postgresql.withPackages (p: [ (callPackage ./nix/pgExtension.nix { inherit postgresql extensionName; }) ]);
extAll = map (x: callPackage ./nix/pgScript.nix { postgresql = pgWExtension { postgresql = x;}; }) supportedPgVersions;
in
Expand Down

0 comments on commit 106e51c

Please sign in to comment.