From fc63ac7c8088433079cda20e5b14bfae10d5174b Mon Sep 17 00:00:00 2001 From: Felix Boerner Date: Thu, 6 Jun 2024 09:15:22 +0200 Subject: [PATCH] feat: free disk space only for molecule --- .github/workflows/test.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 44266fd..cb31c87 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -235,11 +235,6 @@ jobs: name: Ansible runs-on: ubuntu-latest steps: - - name: Free disk space - uses: jlumbroso/free-disk-space@main - with: - tool-cache: false - - name: Check out repository uses: actions/checkout@v4 @@ -276,8 +271,14 @@ jobs: with: files: "molecule" - - name: Install molecule + - name: Free disk space if: steps.check_molecule.outputs.files_exists == 'true' + uses: jlumbroso/free-disk-space@main + with: + tool-cache: false + + - name: Install molecule + run: | pip3 install --disable-pip-version-check molecule molecule-plugins[docker] pytest-testinfra