fix(ci): Add a cache prestep

This commit is contained in:
Timothy Stewart
2024-01-21 12:52:28 -06:00
parent 7a8c7eccb6
commit 7cfcd9727c
3 changed files with 4 additions and 4 deletions

View File

@@ -16,7 +16,7 @@ jobs:
ref: ${{ github.event.pull_request.head.sha }} ref: ${{ github.event.pull_request.head.sha }}
- name: Cache Vagrant boxes - name: Cache Vagrant boxes
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # 3.0.11 uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0
with: with:
path: | path: |
~/.vagrant.d/boxes ~/.vagrant.d/boxes

View File

@@ -22,7 +22,7 @@ jobs:
cache: 'pip' # caching pip dependencies cache: 'pip' # caching pip dependencies
- name: Cache pip - name: Cache pip
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # 3.0.11 uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0
with: with:
path: ~/.cache/pip path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('./requirements.txt') }} key: ${{ runner.os }}-pip-${{ hashFiles('./requirements.txt') }}
@@ -30,7 +30,7 @@ jobs:
${{ runner.os }}-pip- ${{ runner.os }}-pip-
- name: Cache Ansible - name: Cache Ansible
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # 3.0.11 uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0
with: with:
path: ~/.ansible/collections path: ~/.ansible/collections
key: ${{ runner.os }}-ansible-${{ hashFiles('collections/requirements.txt') }} key: ${{ runner.os }}-ansible-${{ hashFiles('collections/requirements.txt') }}

View File

@@ -31,7 +31,7 @@ jobs:
EOF EOF
- name: Restore pip - name: Restore pip
uses: actions/cache/restore@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # 3.0.11 uses: actions/cache/restore@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0
id: cache id: cache
with: with:
path: ~/.cache/pip path: ~/.cache/pip