Skip to content

feat: js bindings #240

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 29 commits into from
Mar 17, 2025
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
0ce5988
chore: add our own text-size
psteinroe Mar 12, 2025
79b25a2
fix: test
psteinroe Mar 12, 2025
1e3eae6
chore: cleanup feature gates
psteinroe Mar 13, 2025
6008c92
Merge branch 'main' into chore/cleanup-feature-gates
psteinroe Mar 14, 2025
d3d3b01
chore: cleanup remaining feature gates
psteinroe Mar 14, 2025
c2ecf28
refactor: migrate to json config
psteinroe Mar 14, 2025
0f53352
fix: lint
psteinroe Mar 14, 2025
7068df3
feat: add schema field
psteinroe Mar 14, 2025
1e42b89
migrate to jsonc config
psteinroe Mar 14, 2025
4f6a06c
feat: wasm attempt 2
psteinroe Mar 14, 2025
e464684
make pglt_wasm crate build
psteinroe Mar 15, 2025
b9beba6
setup bun monorepo
psteinroe Mar 15, 2025
72086f0
feat: bindings
psteinroe Mar 15, 2025
2d8aa42
adapt generate packages
psteinroe Mar 15, 2025
bcd961f
fix: add pg to job
psteinroe Mar 15, 2025
4288e29
fix: run docs codegen
psteinroe Mar 15, 2025
b252b38
fixes
psteinroe Mar 15, 2025
56c540b
fixes
psteinroe Mar 15, 2025
5de1be5
fixes
psteinroe Mar 15, 2025
5610084
Update configuration.rs
psteinroe Mar 16, 2025
2ec96c6
add unit tests
psteinroe Mar 16, 2025
d11bc7a
fix: replace_secion
psteinroe Mar 16, 2025
a0ea640
fix: remove wasm tools
psteinroe Mar 16, 2025
6bd2f5f
remove musl
psteinroe Mar 16, 2025
2ee2867
remove biome ref
psteinroe Mar 16, 2025
c83a0ec
remove biome ref
psteinroe Mar 16, 2025
09539bb
Merge branch 'refactor/json' into feat/wasm-try-2
juleswritescode Mar 17, 2025
1841e11
refactor: migrate to jsonc config (#239)
psteinroe Mar 17, 2025
0cf8fd4
chore: merge main
psteinroe Mar 17, 2025
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
72 changes: 46 additions & 26 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ on:
- "Cargo.lock"
- "rust-toolchain.toml"
- "rustfmt.toml"
# or in js packages
- "packages/**"

concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
Expand Down Expand Up @@ -40,10 +42,15 @@ jobs:
cache-base: main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Biome
uses: biomejs/setup-biome@v2
with:
version: latest
- name: Run format
run: |
cargo fmt --all --check
taplo format --check
biome format

actionlint:
name: Lint GitHub Actions
Expand Down Expand Up @@ -84,36 +91,15 @@ jobs:
cache-base: main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Biome
uses: biomejs/setup-biome@v2
with:
version: latest
- name: Run Lints
run: |
cargo clippy
cargo run -p rules_check

# check-dependencies:
# name: Check Dependencies
# runs-on: ubuntu-latest
# services:
# postgres:
# image: postgres:latest
# env:
# POSTGRES_USER: postgres
# POSTGRES_PASSWORD: postgres
# POSTGRES_DB: postgres
# ports:
# - 5432:5432
# steps:
# - name: Checkout PR Branch
# uses: actions/checkout@v4
# with:
# submodules: true
# - name: Free Disk Space
# uses: ./.github/actions/free-disk-space
# - name: Install toolchain
# run: rustup toolchain install nightly
# - name: Install udeps
# run: cargo install cargo-udeps --locked
# - name: Detect unused dependencies using udeps
# run: cargo +nightly udeps --all-targets
biome lint

test:
name: Test
Expand Down Expand Up @@ -145,6 +131,40 @@ jobs:
- name: Run tests
run: cargo test --workspace

test-js-bindings:
name: Test JS Bindings
runs-on: ubuntu-latest
services:
postgres:
image: postgres:latest
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- 5432:5432
steps:
- name: Checkout PR branch
uses: actions/checkout@v4
with:
submodules: true
- name: Free Disk Space
uses: ./.github/actions/free-disk-space
- name: Install toolchain
uses: moonrepo/setup-rust@v1
- name: Build main binary
run: cargo build -p pglt_cli --release
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Install JS dependencies
run: bun install
- name: Build TypeScript code
working-directory: packages/@pglt/backend-jsonrpc
run: bun run build
- name: Run JS tests
working-directory: packages/@pglt/backend-jsonrpc
run: bun run test

codegen:
name: Check Codegen
runs-on: ubuntu-latest
Expand Down
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,8 @@ target/
.DS_Store
desktop.ini

*.log
*.log

node_modules/

**/dist/
Loading
Loading