From fc8ab77be422aeb8bc9c638233ec325ad361bb63 Mon Sep 17 00:00:00 2001 From: Timothy Stewart Date: Sun, 21 Jan 2024 18:42:29 -0600 Subject: [PATCH] fix(ci): adjusting cache steps --- .github/workflows/cache.yml | 2 +- .github/workflows/test.yml | 10 +++------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/cache.yml b/.github/workflows/cache.yml index b230183..f26f63a 100644 --- a/.github/workflows/cache.yml +++ b/.github/workflows/cache.yml @@ -26,7 +26,7 @@ jobs: id: cache-ansible with: path: ~/.ansible/collections - key: ansible-${{ hashFiles('collections/requirements.txt') }} + key: ansible-${{ hashFiles('collections/requirements.yml') }} restore-keys: | ansible- diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 173a654..2235484 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -67,13 +67,9 @@ jobs: python3 -m pip install -r requirements.txt echo "::endgroup::" - - name: Cache Ansible - uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0 - with: - path: ~/.ansible/collections - key: ansible-${{ hashFiles('collections/requirements.yml') }} - restore-keys: | - ansible- + echo "::group::Install Ansible role requirements from collections/requirements.yml" + ansible-galaxy install -r collections/requirements.yml + echo "::endgroup::" - name: Test with molecule run: molecule test --scenario-name ${{ matrix.scenario }}