Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .claude/settings.local.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"permissions": {
"allow": [
"Bash(gh run view:*)",
"Bash(gh pr view:*)"
]
}
}
23 changes: 17 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
permissions:
contents: read

env:
PGRX_VERSION: "0.17.0"

jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -33,21 +36,29 @@ jobs:
libreadline-dev \
clang

- name: Cache cargo-pgrx binary
id: cache-cargo-pgrx
uses: actions/cache@v5
with:
path: ~/.cargo/bin/cargo-pgrx
key: cargo-pgrx-${{ runner.os }}-${{ env.PGRX_VERSION }}

- name: Install cargo-pgrx
run: cargo install --locked cargo-pgrx
if: steps.cache-cargo-pgrx.outputs.cache-hit != 'true'
run: cargo install --locked cargo-pgrx --version ${{ env.PGRX_VERSION }}

- name: Cache cargo pgrx home
uses: actions/cache@v5
with:
path: ~/.pgrx
key: pgrx-${{ runner.os }}-pg18-${{ hashFiles('Cargo.lock') }}
key: pgrx-${{ runner.os }}-${{ env.PGRX_VERSION }}-pg18

- name: Initialize cargo-pgrx (Postgres 18)
run: |
if [ ! -x "$HOME/.pgrx/pg18/pgrx-install/bin/pg_config" ]; then
cargo pgrx init --pg18 download
if compgen -G "$HOME/.pgrx/*/pgrx-install/bin/pg_config" > /dev/null; then
echo "Postgres already initialized in $HOME/.pgrx"
else
echo "Postgres 18 already initialized in $HOME/.pgrx"
cargo pgrx init --pg18 download
fi

- name: Cache cargo build
Expand All @@ -66,4 +77,4 @@ jobs:
- uses: actions/checkout@v6

- name: Check for spelling mistakes
uses: crate-ci/typos@v1.42.1
uses: crate-ci/typos@v1
1 change: 0 additions & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ cargo pgrx test pg18
- `base62_decode()`: Converts a Base62 encoded string to a UUID

- **`src/error.rs`**: Custom error types using `thiserror`
- `InvalidInput`: UUID length validation failure
- `EncodeError`: Base62 encoding failure
- `DecodeError`: Base62 decoding failure

Expand Down
1 change: 1 addition & 0 deletions CLAUDE.md
Loading