diff --git a/.ci/apt-install-postgres b/.ci/apt-install-postgres index 11356ab..01cdc4a 100755 --- a/.ci/apt-install-postgres +++ b/.ci/apt-install-postgres @@ -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/ diff --git a/.github/workflows/lint-and-test.yml b/.github/workflows/lint-and-test.yml index 17db03e..f0b39cd 100644 --- a/.github/workflows/lint-and-test.yml +++ b/.github/workflows/lint-and-test.yml @@ -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 @@ -53,7 +55,8 @@ 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 @@ -61,3 +64,5 @@ jobs: - 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-*