From 61b4357bc0f1fc4dd34427a676d864fa1d46ad4b Mon Sep 17 00:00:00 2001 From: Alejandro Martinez <11448715+al3mart@users.noreply.github.com> Date: Thu, 15 Jan 2026 13:28:07 +0100 Subject: [PATCH] chore(CI): only trigger integration-tests when merging into main --- .github/workflows/integration-tests.yml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 23ef8bae5..0f93573fe 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -5,10 +5,10 @@ permissions: packages: read on: - push: + workflow_dispatch: + pull_request: branches: - main - pull_request: types: - opened - synchronize @@ -94,6 +94,20 @@ jobs: - macos-latest runs-on: ${{ matrix.os }} steps: + - name: Free up space on runner (Linux) + if: matrix.os == 'ubuntu-latest' + shell: bash + run: | + set -xeuo pipefail + sudo rm -rf /usr/local/lib/android & + sudo rm -rf /usr/share/dotnet & + sudo rm -rf /usr/share/swift & + if command -v docker &> /dev/null; then + sudo docker image prune -af & + fi + sudo apt-get clean & + wait + - uses: actions/checkout@v4 - name: Install stable toolchain @@ -142,4 +156,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - cargo nextest run --locked --no-default-features --features "chain,integration-tests" --test chain --test metadata --no-fail-fast --nocapture --status-level all + cargo nextest run --locked --no-default-features --features "chain,integration-tests" --test chain --test metadata --no-fail-fast --nocapture --status-level all \ No newline at end of file