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 346af78 commit 65e443c
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,34 @@ jobs:
cargo install --git https://github.com/coral-xyz/anchor anchor-cli --tag v0.30.1 || echo "Anchor installation failed"
anchor --version || echo "Anchor not found"
- name: Debug Environment
run: |
echo "Current directory: $(pwd)"
ls -la
echo "Anchor.toml content:"
cat Anchor.toml || echo "Anchor.toml not found"
echo "PATH: $PATH"
echo "Rust version: $(rustc --version)"
echo "Cargo version: $(cargo --version)"
echo "Solana version: $(solana --version)"
echo "Anchor version: $(anchor --version)"
- name: Build Anchor Program
run: anchor build
continue-on-error: true

- name: Debug Build Failure
if: failure()
run: |
echo "Build failed. Debugging information:"
echo "Current directory: $(pwd)"
ls -la
echo "target directory content:"
ls -la target || echo "target directory not found"
echo "programs directory content:"
ls -la programs || echo "programs directory not found"
echo "Cargo.toml content:"
cat Cargo.toml || echo "Cargo.toml not found"
- name: Run Anchor Tests
run: anchor test

0 comments on commit 65e443c

Please sign in to comment.