Skip to content

Commit 5986bc6

Browse files
committed
drop extension
1 parent 99a431b commit 5986bc6

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,25 +56,22 @@ jobs:
5656
~/.cargo
5757
pgml-extension/target
5858
~/.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
6161
if: steps.pgml_extension_changed.outputs.PGML_EXTENSION_CHANGED_FILES != '0'
6262
run: |
6363
git checkout origin/master
6464
echo "\q" | cargo pgrx run
65+
psql -p 28816 -h localhost -d pgml -P pager -c "DROP EXTENSION IF EXISTS pgml CASCADE;"
6566
psql -p 28816 -h localhost -d pgml -P pager -c "CREATE EXTENSION pgml;"
6667
git checkout $GITHUB_SHA
6768
echo "\q" | cargo pgrx run
6869
psql -p 28816 -h localhost -d pgml -P pager -c "ALTER EXTENSION pgml UPDATE;"
6970
- name: Unit tests
70-
env:
71-
CI_BRANCH: ${{ steps.current_version.outputs.CI_BRANCH }}
7271
if: steps.pgml_extension_changed.outputs.PGML_EXTENSION_CHANGED_FILES != '0'
7372
run: |
7473
cargo pgrx test
7574
- name: Integration tests
76-
env:
77-
CI_BRANCH: ${{ steps.current_version.outputs.CI_BRANCH }}
7875
if: steps.pgml_extension_changed.outputs.PGML_EXTENSION_CHANGED_FILES != '0'
7976
run: |
8077
cargo pgrx start

pgml-extension/tests/test.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
--- Usage:
55
---
66
--- $ 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
88
---
99
\set ON_ERROR_STOP true
1010
\timing on

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy