Skip to content

Commit

Permalink
Debug CI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dankelleher committed Dec 20, 2023
1 parent e1c52d0 commit 44a5a6d
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 9 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,13 @@ jobs:
target
key: cargo-build-${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('rust-toolchain.toml') }}
- name: run tests
run: yarn test
run: |
pwd
cat ./tmp.sh
ls -l tmp.sh
yarn anchor test --skip-build packages/tests/src/functional/beams/core.test.ts
echo "skipping yarn test"
# yarn test
- uses: actions/upload-artifact@v3
if: always()
Expand Down
2 changes: 1 addition & 1 deletion Anchor.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ cluster = "Localnet"
wallet = "packages/tests/fixtures/provider.json"

[scripts]
test = "echo in $(pwd)"
test = "packages/tests/run.sh"

[test.validator]
slots_per_epoch = "32"
Expand Down
6 changes: 4 additions & 2 deletions packages/sdks/common/src/types/marinade_beam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,8 @@ export type MarinadeBeam = {
{
"name": "vaultAuthorityBump",
"docs": [
"that holds pool tokens(msol in this case)."
"The bump of the PDA that can authorize spending from the vault",
"that holds pool tokens (msol in this case)."
],
"type": "u8"
},
Expand Down Expand Up @@ -1685,7 +1686,8 @@ export const IDL: MarinadeBeam = {
{
"name": "vaultAuthorityBump",
"docs": [
"that holds pool tokens(msol in this case)."
"The bump of the PDA that can authorize spending from the vault",
"that holds pool tokens (msol in this case)."
],
"type": "u8"
},
Expand Down
24 changes: 20 additions & 4 deletions packages/sdks/common/src/types/marinade_lp_beam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ export type MarinadeLpBeam = {
{
"name": "liqPoolVault",
"isMut": true,
"isSigner": false
"isSigner": false,
"docs": [
"The token account of the liquidity pool tokens held by the beam."
]
},
{
"name": "vaultAuthority",
Expand Down Expand Up @@ -233,7 +236,12 @@ export type MarinadeLpBeam = {
{
"name": "transferMsolTo",
"isMut": true,
"isSigner": false
"isSigner": false,
"docs": [
"When withdrawing from the Marinade LP, the withdrawal is part SOL, part mSOL.",
"The SOL portion is transferred to the user (withdrawer) and the mSOL portion",
"is transferred to the msol_token_account owned by the marinade stake pool."
]
},
{
"name": "liqPoolSolLegPda",
Expand Down Expand Up @@ -437,7 +445,10 @@ export const IDL: MarinadeLpBeam = {
{
"name": "liqPoolVault",
"isMut": true,
"isSigner": false
"isSigner": false,
"docs": [
"The token account of the liquidity pool tokens held by the beam."
]
},
{
"name": "vaultAuthority",
Expand Down Expand Up @@ -647,7 +658,12 @@ export const IDL: MarinadeLpBeam = {
{
"name": "transferMsolTo",
"isMut": true,
"isSigner": false
"isSigner": false,
"docs": [
"When withdrawing from the Marinade LP, the withdrawal is part SOL, part mSOL.",
"The SOL portion is transferred to the user (withdrawer) and the mSOL portion",
"is transferred to the msol_token_account owned by the marinade stake pool."
]
},
{
"name": "liqPoolSolLegPda",
Expand Down
4 changes: 3 additions & 1 deletion packages/tests/run.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#!/bin/bash
echo "test file" $1

report_name="mocha-reports/mocha-report-$(basename "$1" .test.ts).json"

echo "Executing: "
echo "mocha --config packages/tests/.mocharc.json --reporter mochawesome --reporter-options reportFilename=$report_name,quiet=true $1"

mocha --config packages/tests/.mocharc.json --reporter mochawesome --reporter-options reportFilename=$report_name,quiet=true $1
#mocha --config packages/tests/.mocharc.json --reporter mochawesome --reporter-options reportFilename=$report_name,quiet=true $1
#mocha --config packages/tests/.mocharc.json $1
1 change: 1 addition & 0 deletions tmp.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/bin/bash
echo "in tmp.sh"
echo $PWD

0 comments on commit 44a5a6d

Please sign in to comment.