Skip to content

Commit

Permalink
Support Postgres 17
Browse files Browse the repository at this point in the history
- Update Rust toolchain to 1.82.0
- Upgrade pgrx to 0.12.7
- Upgrade lettre to 0.11.10
- Add CI testing for multiple Postgres versions
  • Loading branch information
brianpursley committed Oct 31, 2024
1 parent a85cbd6 commit ca30c17
Show file tree
Hide file tree
Showing 7 changed files with 302 additions and 273 deletions.
38 changes: 31 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,37 @@ on:
jobs:
test:
name: Test
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
strategy:
matrix:
PG_VERSION: [pg14, pg15, pg16, pg17]
env:
PG_VERSION: ${{ matrix.PG_VERSION }}
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Checkout
uses: actions/checkout@v4

- name: Setup Rust Toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.77.2
toolchain: 1.82.0
components: clippy, rustfmt
- run: make init
- run: make lint
- run: make test

- name: Cache Rust
uses: Swatinem/rust-cache@v2

- name: Cache pgrx
uses: actions/cache@v4
with:
path: |
~/.pgrx/
key: ${{ runner.os }}-pgrx

- name: Init
run: make init

- name: Lint
run: make lint

- name: Test
run: make test
5 changes: 5 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# pg_smtp_client

## Install dependencies (needed for testing postgres 17)
```shell
sudo apt-get install bison flex
```

## Setup

```shell
Expand Down
Loading

0 comments on commit ca30c17

Please sign in to comment.