From 9ca2d6e6d40f45532445e35867928263d4714379 Mon Sep 17 00:00:00 2001 From: s-damian Date: Sat, 17 Aug 2024 12:31:06 +0300 Subject: [PATCH] Update .github/workflows/tests.yml --- .github/workflows/tests.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a889f7f..3a7d834 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -35,6 +35,20 @@ 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: Debug Project Structure + run: | + echo "Current directory: $(pwd)" + echo "Directory structure:" + tree -L 3 || ls -R + echo "Anchor.toml content:" + cat Anchor.toml || echo "Anchor.toml not found" + echo "Cargo.toml content:" + cat Cargo.toml || echo "Cargo.toml not found" + echo "Program Cargo.toml content:" + cat programs/*/Cargo.toml || echo "Program Cargo.toml not found" + + - name: Debug Environment run: | echo "Current directory: $(pwd)" @@ -51,6 +65,7 @@ jobs: run: anchor build continue-on-error: true + - name: Debug Build Failure if: failure() run: | @@ -64,5 +79,6 @@ jobs: echo "Cargo.toml content:" cat Cargo.toml || echo "Cargo.toml not found" + - name: Run Anchor Tests run: anchor test