From 5001b99e6595bad2928fe952cdb4d266aa10f643 Mon Sep 17 00:00:00 2001 From: Sergey Timoshin Date: Mon, 6 Jan 2025 22:01:59 +0000 Subject: [PATCH] add cleanup and disk space check steps to forester workflow --- .github/workflows/forester-tests.yml | 40 ++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/.github/workflows/forester-tests.yml b/.github/workflows/forester-tests.yml index 66f226ad7..ff6e2ce80 100644 --- a/.github/workflows/forester-tests.yml +++ b/.github/workflows/forester-tests.yml @@ -38,6 +38,16 @@ jobs: - uses: actions/checkout@v4 - name: Setup and build uses: ./.github/actions/setup-and-build + - name: Clean build artifacts before tests + shell: bash + run: | + cargo clean + rm -rf target/debug/deps/* + - name: Check available disk space + shell: bash + run: | + df -h / + du -sh /home/runner/work/* | sort -hr | head -n 10 - name: Build test program run: | source ./scripts/devenv.sh @@ -54,6 +64,16 @@ jobs: - uses: actions/checkout@v4 - name: Setup and build uses: ./.github/actions/setup-and-build + - name: Clean build artifacts before tests + shell: bash + run: | + cargo clean + rm -rf target/debug/deps/* + - name: Check available disk space + shell: bash + run: | + df -h / + du -sh /home/runner/work/* | sort -hr | head -n 10 - name: Run state batched tests run: | source ./scripts/devenv.sh @@ -66,6 +86,16 @@ jobs: - uses: actions/checkout@v4 - name: Setup and build uses: ./.github/actions/setup-and-build + - name: Clean build artifacts before tests + shell: bash + run: | + cargo clean + rm -rf target/debug/deps/* + - name: Check available disk space + shell: bash + run: | + df -h / + du -sh /home/runner/work/* | sort -hr | head -n 10 - name: Run 2 foresters test run: | source ./scripts/devenv.sh @@ -78,6 +108,16 @@ jobs: - uses: actions/checkout@v4 - name: Setup and build uses: ./.github/actions/setup-and-build + - name: Clean build artifacts before tests + shell: bash + run: | + cargo clean + rm -rf target/debug/deps/* + - name: Check available disk space + shell: bash + run: | + df -h / + du -sh /home/runner/work/* | sort -hr | head -n 10 - name: Run epoch double registration test run: | source ./scripts/devenv.sh