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 9ca2d6e commit 000b7c4
Showing 1 changed file with 7 additions and 17 deletions.
24 changes: 7 additions & 17 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ jobs:
cargo install --git https://github.com/coral-xyz/anchor anchor-cli --tag v0.30.1 || echo "Anchor installation failed"
anchor --version || echo "Anchor version not found"
- name: Generate Solana Keypair
run: |
solana-keygen new --outfile ~/.config/solana/id.json --force
solana config set --keypair ~/.config/solana/id.json
- name: Debug Project Structure
run: |
Expand All @@ -48,7 +52,6 @@ jobs:
echo "Program Cargo.toml content:"
cat programs/*/Cargo.toml || echo "Program Cargo.toml not found"
- name: Debug Environment
run: |
echo "Current directory: $(pwd)"
Expand All @@ -65,20 +68,7 @@ jobs:
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
run: |
solana config set --keypair ~/.config/solana/id.json
anchor test

0 comments on commit 000b7c4

Please sign in to comment.