fix(ci): adjusting cache steps

This commit is contained in:
Timothy Stewart
2024-01-21 18:42:29 -06:00
parent f7869f447d
commit fc8ab77be4
2 changed files with 4 additions and 8 deletions

View File

@@ -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-

View File

@@ -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 }}