diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2124897..7dcaedb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,17 +22,23 @@ jobs: with: ref: ${{ github.event.pull_request.head.sha }} - - name: Update Homebrew - run: | - brew update --preinstall - echo ${{ hashFiles ('"$(brew --repository)"') }} > .github/brew-formulae - - name: Restore Homebrew cache uses: actions/cache/restore@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0 with: path: ~/Library/Caches/Homebrew key: brew-${{ hashFiles('.github/brew-formulae') }} + - name: Update Homebrew + run: | + brew update --preinstall + echo ${{ hashFiles ('"$(brew --repository)"') }} > .github/brew-formulae + + - name: Restore Ansible cache + uses: actions/cache/restore@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0 + with: + path: ~/.ansible/collections + key: ${{ runner.os }}-ansible-${{ hashFiles('collections/requirements.txt') }} + - name: Install Homebrew dependencies run: | env HOMEBREW_NO_AUTO_UPDATE=1 brew install virtualbox vagrant @@ -42,6 +48,7 @@ jobs: with: path: ~/.vagrant.d/boxes key: vagrant-boxes-${{ hashFiles('**/molecule.yml') }} + fail-on-cache-miss: true - name: Configure VirtualBox run: |-