|
12 | 12 | - "Cargo.lock"
|
13 | 13 | - "rust-toolchain.toml"
|
14 | 14 | - "rustfmt.toml"
|
| 15 | + # or in js packages |
| 16 | + - "packages/**" |
15 | 17 |
|
16 | 18 | concurrency:
|
17 | 19 | group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
|
|
89 | 91 | cargo clippy
|
90 | 92 | cargo run -p rules_check
|
91 | 93 |
|
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 |
| - |
118 | 94 | test:
|
119 | 95 | name: Test
|
120 | 96 | runs-on: ${{ matrix.os }}
|
@@ -145,6 +121,29 @@ jobs:
|
145 | 121 | - name: Run tests
|
146 | 122 | run: cargo test --workspace
|
147 | 123 |
|
| 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 | + |
148 | 147 | codegen:
|
149 | 148 | name: Check Codegen
|
150 | 149 | runs-on: ubuntu-latest
|
|
0 commit comments