From 272e9cde2bd95237ca842c609447cda8b574ac0f Mon Sep 17 00:00:00 2001 From: Timothy Stewart Date: Sun, 21 Jan 2024 14:24:37 -0600 Subject: [PATCH] fix(ci): move to macos13 --- .github/workflows/cache.yml | 1 + .github/workflows/test.yml | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/.github/workflows/cache.yml b/.github/workflows/cache.yml index 890ec8a..2977b87 100644 --- a/.github/workflows/cache.yml +++ b/.github/workflows/cache.yml @@ -19,6 +19,7 @@ jobs: run: | brew update --preinstall echo ${{ hashFiles ('"$(brew --repository)"') }} > .github/brew-formulae + - name: Configure Homebrew cache uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0 with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 499493f..bfa4164 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,6 +22,28 @@ 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: Install Homebrew dependencies + run: | + env HOMEBREW_NO_AUTO_UPDATE=1 brew install virtualbox vagrant + + - name: Restore vagrant Boxes cache + uses: actions/cache/restore@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0 + with: + path: ~/.vagrant.d/boxes + key: vagrant-boxes-${{ hashFiles('**/molecule.yml') }} + + - name: Configure VirtualBox run: |- sudo mkdir -p /etc/vbox