Skip to content

Commit 4d88939

Browse files
authored
Fix CI (#138)
* fix: separate dlmm bin for testing * fix: CI for artifacts change * fix: Anchor.toml
1 parent 9bf31ff commit 4d88939

13 files changed

+5
-91
lines changed

.github/workflows/ci-pr-main-program.yml

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
with:
2626
files: |
2727
programs/lb_clmm
28+
artifacts
2829
2930
lb_clmm_anchor_build:
3031
runs-on: ubuntu-latest

.github/workflows/ci-pr-main-sdk.yml

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
with:
2626
files: |
2727
ts-client
28+
artifacts
2829
2930
sdk_test:
3031
runs-on: ubuntu-latest

Anchor.toml

-4
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,9 @@ program = "./artifacts/lb_clmm.so"
2222

2323
[scripts]
2424
test = "yarn run ts-mocha --sort --type-check --bail -p ./tsconfig.json -t 1000000 tests/*.ts"
25-
test-alpha-access = "anchor localnet -- --features alpha-access,localnet > /dev/null 2>&1 & sleep 2 && yarn run ts-mocha --type-check --bail -p ./tsconfig.json -t 1000000 tests/alpha_access/*.ts || kill $(pgrep solana-test-val)"
2625
build-local = "anchor build"
2726
deploy-local = "solana program deploy target/deploy/lb_clmm.so --keypair keys/localnet/admin-bossj3JvwiNK7pvjr149DqdtJxf2gdygbcmEPTkb2F1.json --program-id keys/localnet/program-LbVRzDTvBDEcrthxfZ4RL6yiq3uZw8bS6MwtdY6UhFQ.json"
2827

29-
[[test.validator.account_dir]]
30-
directory = "./artifacts/alpha-access"
31-
3228
[test]
3329
startup_wait = 50000
3430

artifacts/alpha-access/fox-federation-#3454-metadata.json

-14
This file was deleted.

artifacts/alpha-access/fox-federation-#3454.json

-14
This file was deleted.

artifacts/alpha-access/mad-lads-#1313-metadata.json

-14
This file was deleted.

artifacts/alpha-access/mad-lads-#1313.json

-14
This file was deleted.

artifacts/alpha-access/mad-lads-#5527-metadata.json

-14
This file was deleted.

artifacts/alpha-access/mad-lads-#5527.json

-14
This file was deleted.

artifacts/lb_clmm.so

-164 KB
Binary file not shown.

programs/lb_clmm/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ solana-sdk = "1.16.0"
3838
async-trait = "0.1.52"
3939
assert_matches = "1.5.0"
4040
spl-associated-token-account = "1.0.3"
41-
commons={path="../../commons"}
42-
bincode = "1.3.3"
41+
commons = { path = "../../commons" }
42+
bincode = "1.3.3"
1.47 MB
Binary file not shown.

programs/lb_clmm/tests/test_swap.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use utils::*;
2121
async fn test_swap() {
2222
let mut test = ProgramTest::default();
2323

24-
test.add_program("../../artifacts/lb_clmm", lb_clmm::id(), None);
24+
test.add_program("./tests/artifacts/lb_clmm_prod", lb_clmm::id(), None);
2525

2626
let lb_pair = Pubkey::from_str("EtAdVRLFH22rjWh3mcUasKFF27WtHhsaCvK27tPFFWig").unwrap();
2727
let reserve_x = Pubkey::from_str("BmW4cCRpJwwL8maFB1AoAuEQf96t64Eq5gUvXikZardM").unwrap();

0 commit comments

Comments
 (0)