Skip to content

Commit

Permalink
Remove data directories
Browse files Browse the repository at this point in the history
  • Loading branch information
theory committed Apr 5, 2024
1 parent 7797210 commit a9abd91
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .ci/apt-install-postgres
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ PGVERSION=${1:-}
apt-get update
apt-get install -y --no-install-recommends \
build-essential clang llvm llvm-dev llvm-runtime cmake \
ca-certificates gnupg2 curl libicu-dev libxml2 locales ssl-cert xmllint
ca-certificates gnupg2 curl libicu-dev libxml2 locales ssl-cert libxml2-utils
apt-get -y purge postgresql-client-common

curl https://salsa.debian.org/postgresql/postgresql-common/-/raw/master/pgdg/apt.postgresql.org.sh -O --output-dir /usr/local/bin/
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}
slug: tembo-io/pg-jsonschema
files: target/cover/cobertura.xml
- name: Remove Data Diretory
run: rm -rf target/pgrx-test-*

test:
runs-on: ubuntu-latest
Expand All @@ -53,11 +55,14 @@ jobs:
run: sudo ./.ci/apt-install-postgres ${{ matrix.pg }}
- name: Setup Rust Cache
uses: Swatinem/rust-cache@v2
- run: env
- name: Remove Data Diretory
run: rm -rf target/pgrx-test-*
- name: Install pgrx
run: cargo install cargo-pgrx --locked --version "$(make pgrx-version)"
- name: Initialize pgrx
run: cargo pgrx init --pg${{ matrix.pg }}="$(which pg_config)"
- name: Run the tests
env: { RUST_BACKTRACE: 1, PGUSER: postgres }
run: cargo test --all --no-default-features --features "pg${{ matrix.pg }} pg_test" -- --nocapture
- name: Remove Data Diretory
run: rm -rf target/pgrx-test-*

0 comments on commit a9abd91

Please sign in to comment.