File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -56,25 +56,22 @@ jobs:
56
56
~/.cargo
57
57
pgml-extension/target
58
58
~/.pgrx
59
- key : ${{ runner.os }}-rust-1.74-${{ hashFiles('pgml-extension/Cargo.lock') }}-bust1
60
- - name : Update extension
59
+ key : ${{ runner.os }}-rust-1.74-${{ hashFiles('pgml-extension/Cargo.lock') }}
60
+ - name : Update extension test
61
61
if : steps.pgml_extension_changed.outputs.PGML_EXTENSION_CHANGED_FILES != '0'
62
62
run : |
63
63
git checkout origin/master
64
64
echo "\q" | cargo pgrx run
65
+ psql -p 28816 -h localhost -d pgml -P pager -c "DROP EXTENSION IF EXISTS pgml CASCADE;"
65
66
psql -p 28816 -h localhost -d pgml -P pager -c "CREATE EXTENSION pgml;"
66
67
git checkout $GITHUB_SHA
67
68
echo "\q" | cargo pgrx run
68
69
psql -p 28816 -h localhost -d pgml -P pager -c "ALTER EXTENSION pgml UPDATE;"
69
70
- name : Unit tests
70
- env :
71
- CI_BRANCH : ${{ steps.current_version.outputs.CI_BRANCH }}
72
71
if : steps.pgml_extension_changed.outputs.PGML_EXTENSION_CHANGED_FILES != '0'
73
72
run : |
74
73
cargo pgrx test
75
74
- name : Integration tests
76
- env :
77
- CI_BRANCH : ${{ steps.current_version.outputs.CI_BRANCH }}
78
75
if : steps.pgml_extension_changed.outputs.PGML_EXTENSION_CHANGED_FILES != '0'
79
76
run : |
80
77
cargo pgrx start
Original file line number Diff line number Diff line change 4
4
-- - Usage:
5
5
-- -
6
6
-- - $ cargo pgrx run --release
7
- -- - $ psql -h localhost -p 28815 -d pgml -f tests/test.sql -P pager
7
+ -- - $ psql -h localhost -p 28816 -d pgml -f tests/test.sql -P pager
8
8
-- -
9
9
\set ON_ERROR_STOP true
10
10
\timing on
You can’t perform that action at this time.
0 commit comments