File tree Expand file tree Collapse file tree 1 file changed +15
-10
lines changed Expand file tree Collapse file tree 1 file changed +15
-10
lines changed Original file line number Diff line number Diff line change 3
3
RUSTFLAGS : -Dwarnings
4
4
CARGO_TERM_COLOR : always
5
5
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6
+ PG_VER : 17
6
7
7
8
on :
8
9
pull_request_target :
@@ -27,22 +28,26 @@ jobs:
27
28
strategy :
28
29
fail-fast : false
29
30
matrix :
30
- os : [ubuntu-latest, macos-latest, windows-latest]
31
+ # TODO: other OS
32
+ os : [ubuntu-latest]
31
33
action :
32
34
- command : build
33
35
args : --release
34
36
- command : fmt
35
37
args : --all -- --check
36
38
- command : clippy
37
39
args : --all-features --workspace
38
- - command : test
39
- args : --all-features --workspace
40
+ - command : pgrx test
41
+ args : --all-features
40
42
steps :
41
- - name : Checkout Repository
42
- uses : actions/checkout@v4
43
- - name : Setup Rust Toolchain
44
- uses : actions-rust-lang/setup-rust-toolchain@v1
45
- - name : Enable Caching
46
- uses : Swatinem/rust-cache@v2
43
+ - uses : actions/checkout@v4
44
+ - uses : Swatinem/rust-cache@v2
45
+ - uses : actions-rust-lang/setup-rust-toolchain@v1
46
+ - name : Install PostgreSQL
47
+ run : sudo apt install -y postgresql-server-dev-$PG_VER
48
+ - name : Install cargo pgrx
49
+ run : cargo install --path cargo-pgrx
50
+ - name : cargo pgrx init
51
+ run : cargo pgrx init "--pg$PG_VER=$(which pg_config)"
47
52
- name : Run Command
48
- run : cargo ${{ matrix.action.command }} ${{ matrix.action.args }}
53
+ run : cargo ${{ matrix.action.command }} ${{ matrix.action.args }} --runas postgres --pgdata=/tmp/pgdata
You can’t perform that action at this time.
0 commit comments