Skip to content

Commit

Permalink
Update .github/workflows/tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
s-damian committed Aug 17, 2024
1 parent f1902d5 commit 850ec5c
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,25 @@ jobs:
run: |
sh -c "$(curl -sSfL https://release.solana.com/v1.18.22/install)"
echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
source $HOME/.cargo/env
solana --version
- name: Install Anchor
run: |
cargo install --git https://github.com/coral-xyz/anchor anchor-cli --tag v0.30.1
source $HOME/.cargo/env
anchor --version
- name: Debug Environment
run: |
echo "PATH: $PATH"
echo "Rust version: $(rustc --version)"
echo "Cargo version: $(cargo --version)"
echo "Solana version: $(solana --version)"
echo "Anchor version: $(anchor --version)"
echo "Current directory: $(pwd)"
ls -la
- name: Build Anchor Program
run: |
anchor build
Expand All @@ -41,12 +53,10 @@ jobs:
anchor test
continue-on-error: true

- name: Debug Information
- name: Debug Failure
if: failure()
run: |
echo "Current directory: $(pwd)"
ls -la
echo "Rust version: $(rustc --version)"
echo "Cargo version: $(cargo --version)"
echo "Solana version: $(solana --version)"
echo "Anchor version: $(anchor --version)"
echo "Build log:"
cat target/debug/build/*.log
echo "Test log:"
cat target/debug/deps/*.stdout

0 comments on commit 850ec5c

Please sign in to comment.