Skip to content

Commit 72086f0

Browse files
committed
feat: bindings
1 parent b9beba6 commit 72086f0

File tree

28 files changed

+2068
-847
lines changed

28 files changed

+2068
-847
lines changed

.github/workflows/pull_request.yml

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ on:
1212
- "Cargo.lock"
1313
- "rust-toolchain.toml"
1414
- "rustfmt.toml"
15+
# or in js packages
16+
- "packages/**"
1517

1618
concurrency:
1719
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
@@ -89,32 +91,6 @@ jobs:
8991
cargo clippy
9092
cargo run -p rules_check
9193
92-
# check-dependencies:
93-
# name: Check Dependencies
94-
# runs-on: ubuntu-latest
95-
# services:
96-
# postgres:
97-
# image: postgres:latest
98-
# env:
99-
# POSTGRES_USER: postgres
100-
# POSTGRES_PASSWORD: postgres
101-
# POSTGRES_DB: postgres
102-
# ports:
103-
# - 5432:5432
104-
# steps:
105-
# - name: Checkout PR Branch
106-
# uses: actions/checkout@v4
107-
# with:
108-
# submodules: true
109-
# - name: Free Disk Space
110-
# uses: ./.github/actions/free-disk-space
111-
# - name: Install toolchain
112-
# run: rustup toolchain install nightly
113-
# - name: Install udeps
114-
# run: cargo install cargo-udeps --locked
115-
# - name: Detect unused dependencies using udeps
116-
# run: cargo +nightly udeps --all-targets
117-
11894
test:
11995
name: Test
12096
runs-on: ${{ matrix.os }}
@@ -145,6 +121,29 @@ jobs:
145121
- name: Run tests
146122
run: cargo test --workspace
147123

124+
test-js-bindings:
125+
name: Test JS Bindings
126+
runs-on: ubuntu-latest
127+
steps:
128+
- name: Checkout PR branch
129+
uses: actions/checkout@v4
130+
with:
131+
submodules: true
132+
- name: Free Disk Space
133+
uses: ./.github/actions/free-disk-space
134+
- name: Install toolchain
135+
uses: moonrepo/setup-rust@v1
136+
- name: Build main binary
137+
run: cargo build -p pglt_cli --release
138+
- name: Setup Bun
139+
uses: oven-sh/setup-bun@v2
140+
- name: Install JS dependencies
141+
run: bun install
142+
- name: Build TypeScript code
143+
run: bun --filter @pglt/backend-jsonrpc run build
144+
- name: Run JS tests
145+
run: bun --filter @pglt/backend-jsonrpc run test
146+
148147
codegen:
149148
name: Check Codegen
150149
runs-on: ubuntu-latest

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ desktop.ini
2121
*.log
2222

2323
node_modules/
24+
25+
**/dist/

0 commit comments

Comments
 (0)