mirror of
https://github.com/techno-tim/k3s-ansible.git
synced 2025-12-28 11:42:37 +01:00
fix(ci): adjusting cache steps
This commit is contained in:
2
.github/workflows/cache.yml
vendored
2
.github/workflows/cache.yml
vendored
@@ -26,7 +26,7 @@ jobs:
|
|||||||
id: cache-ansible
|
id: cache-ansible
|
||||||
with:
|
with:
|
||||||
path: ~/.ansible/collections
|
path: ~/.ansible/collections
|
||||||
key: ansible-${{ hashFiles('collections/requirements.txt') }}
|
key: ansible-${{ hashFiles('collections/requirements.yml') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
ansible-
|
ansible-
|
||||||
|
|
||||||
|
|||||||
10
.github/workflows/test.yml
vendored
10
.github/workflows/test.yml
vendored
@@ -67,13 +67,9 @@ jobs:
|
|||||||
python3 -m pip install -r requirements.txt
|
python3 -m pip install -r requirements.txt
|
||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
|
|
||||||
- name: Cache Ansible
|
echo "::group::Install Ansible role requirements from collections/requirements.yml"
|
||||||
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0
|
ansible-galaxy install -r collections/requirements.yml
|
||||||
with:
|
echo "::endgroup::"
|
||||||
path: ~/.ansible/collections
|
|
||||||
key: ansible-${{ hashFiles('collections/requirements.yml') }}
|
|
||||||
restore-keys: |
|
|
||||||
ansible-
|
|
||||||
|
|
||||||
- name: Test with molecule
|
- name: Test with molecule
|
||||||
run: molecule test --scenario-name ${{ matrix.scenario }}
|
run: molecule test --scenario-name ${{ matrix.scenario }}
|
||||||
|
|||||||
Reference in New Issue
Block a user