Skip to content

Commit

Permalink
Try a cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
theory committed Apr 4, 2024
1 parent 9a5a1a5 commit 47c5b02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ jobs:
- name: Install pgrx
run: cargo install cargo-pgrx --locked --version "$(perl -ne 'print $1 if /^pgrx\s+=\s"=?([^"]+)/' Cargo.toml)"
- name: Initialize pgrx
# https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2204-Readme.md#postgresql
run: cargo pgrx init --pg${{ env.PGVERSION }}="$(which pg_config)"
- name: Cargo format
run: cargo fmt --all --check
Expand All @@ -49,7 +48,9 @@ jobs:
run: sudo ./.ci/apt-install-postgres ${{ matrix.pg }}
- name: Setup Rust Cache
uses: Swatinem/rust-cache@v2
with: { cache-directories: "${{ env.HOME }}" }
with:
cache-directories: ~/.pgrx
key: "${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}"
- run: env
- name: Install pgrx
run: cargo install cargo-pgrx --locked --version "$(perl -ne 'print $1 if /^pgrx\s+=\s"=?([^"]+)/' Cargo.toml)"
Expand Down
4 changes: 0 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -658,10 +658,6 @@ mod tests {
let types = ["json", "jsonb"];
for schema_type in types {
for obj_type in types {
println!(
"ID: {}",
address_schema.get("$id").unwrap().as_str().unwrap()
);
// Valid address.
let query = format!(
"SELECT jsonschema_validates('{obj}'::{ot}, '{id}', '{as}'::{st})",
Expand Down

0 comments on commit 47c5b02

Please sign in to comment.