Skip to content

Commit

Permalink
fix: ts test
Browse files Browse the repository at this point in the history
  • Loading branch information
codewithgun committed Dec 31, 2024
1 parent 599873c commit acd860d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 43 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/ci-pr-main-cli.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Lb Clmm Cli
name: DLMM Cli

on:
pull_request:
Expand Down Expand Up @@ -32,9 +32,6 @@ jobs:
if: needs.cli_changed_files.outputs.cli == 'true'
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:
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/ci-pr-main-market-making.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Lb Clmm Cli
name: DLMM Cli

on:
pull_request:
Expand Down Expand Up @@ -32,9 +32,6 @@ jobs:
if: needs.market_making_changed_files.outputs.market_making == 'true'
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:
Expand Down
41 changes: 7 additions & 34 deletions .github/workflows/ci-pr-main-program.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
name: Lb Clmm Program
name: DLMM Commons

on:
pull_request:
branches:
- main

env:
SOLANA_CLI_VERSION: 1.16.1
NODE_VERSION: 18.14.2
ANCHOR_CLI_VERSION: 0.28.0

jobs:
program_changed_files:
common_changed_files:
runs-on: ubuntu-latest
outputs:
program: ${{steps.changed-files-specific.outputs.any_changed}}
Expand All @@ -24,37 +19,15 @@ jobs:
uses: tj-actions/[email protected]
with:
files: |
programs/lb_clmm
commons
artifacts
lb_clmm_anchor_build:
runs-on: ubuntu-latest
needs: program_changed_files
if: needs.program_changed_files.outputs.program == 'true'
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: 1.76.0
override: true
components: clippy
# Cache rust, cargo
- uses: Swatinem/rust-cache@v1
- run: anchor build
shell: bash
lb_clmm_test:
common_test:
runs-on: ubuntu-latest
needs: program_changed_files
if: needs.program_changed_files.outputs.program == 'true'
needs: common_changed_files
if: needs.common_changed_files.outputs.program == 'true'
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:
Expand All @@ -63,5 +36,5 @@ jobs:
components: clippy
# Cache rust, cargo
- uses: Swatinem/rust-cache@v1
- run: cd programs/lb_clmm && cargo test-bpf && cd ../..
- run: cargo t -p commons --test '*'
shell: bash
2 changes: 1 addition & 1 deletion .github/workflows/ci-pr-main-sdk.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Lb Clmm SDK
name: DLMM SDK

on:
pull_request:
Expand Down

0 comments on commit acd860d

Please sign in to comment.