[TKN-682] Commit Codama-generated clients (TS/Rust) and add verify-generated CI #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Verify generated clients | |
| on: | |
| pull_request: | |
| paths: | |
| - 'programs/whirlpool/**' | |
| - 'Anchor.toml' | |
| - 'codama.*' | |
| - 'ts-sdk/**' | |
| - 'rust-sdk/**' | |
| - '.github/workflows/**' | |
| jobs: | |
| verify-generated: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Anchor toolchain | |
| uses: ./.github/actions/anchor | |
| with: | |
| rustc-version: v1.84.0 | |
| node-version: v22.8.0 | |
| solana-version: v1.17.25 | |
| anchor-version: v0.29.0 | |
| - name: Install deps | |
| run: yarn install --immutable | |
| - name: Regenerate IDL | |
| run: yarn generate:idl | |
| - name: Generate TS and Rust clients | |
| run: yarn generate:clients | |
| - name: Verify no diffs in generated outputs | |
| run: | | |
| git diff --exit-code -- \ | |
| ts-sdk/client/src/generated \ | |
| rust-sdk/client/src/generated | |