feat: allow to customize a chunk size for claiming methods #659
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: DLMM SDK | |
on: | |
pull_request: | |
branches: | |
- main | |
env: | |
SOLANA_CLI_VERSION: 2.1.0 | |
NODE_VERSION: 20.11.0 | |
ANCHOR_CLI_VERSION: 0.31.0 | |
jobs: | |
sdk_changed_files: | |
runs-on: ubuntu-latest | |
outputs: | |
sdk: ${{steps.changed-files-specific.outputs.any_changed}} | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Get specific changed files | |
id: changed-files-specific | |
uses: tj-actions/[email protected] | |
with: | |
files: | | |
ts-client | |
artifacts | |
sdk_test: | |
runs-on: ubuntu-latest | |
needs: sdk_changed_files | |
if: needs.sdk_changed_files.outputs.sdk == 'true' | |
env: | |
RPC: ${{ secrets.RPC }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: ./.github/actions/setup-solana | |
- uses: ./.github/actions/setup-dep | |
- uses: ./.github/actions/setup-anchor | |
# Install rust + toolchain | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
components: clippy | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: 10 | |
# Cache node_modules | |
- uses: actions/cache@v4 | |
id: cache-node-modules | |
with: | |
path: ./ts-client/node_modules | |
key: ${{ runner.os }}-${{ hashFiles('./pnpm-lock.yaml') }} | |
- run: anchor localnet -- --features localnet & sleep 2 | |
shell: bash | |
- run: cd ts-client && pnpm install && pnpm run test | |
shell: bash |