From f2b87ec0975e936a71dc33d25823216e739e3cf7 Mon Sep 17 00:00:00 2001 From: Timothy Stewart Date: Sun, 21 Jan 2024 13:20:36 -0600 Subject: [PATCH] fix(ci): move to macos13 --- .github/workflows/cache.yml | 20 +++++++++++++++++++- .github/workflows/test.yml | 2 +- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cache.yml b/.github/workflows/cache.yml index 6998dc1..e2e93b1 100644 --- a/.github/workflows/cache.yml +++ b/.github/workflows/cache.yml @@ -5,7 +5,7 @@ on: jobs: molecule: name: cache - runs-on: macos-12 + runs-on: macos-13 env: PYTHON_VERSION: "3.11" @@ -23,3 +23,21 @@ jobs: key: vagrant-boxes-${{ hashFiles('**/molecule.yml') }} restore-keys: | vagrant-boxes + + - name: Update Homebrew + run: | + brew update --preinstall + cat "$(brew --repository)/Library/Taps/homebrew/homebrew-core/Formula/foo.rb" > .github/brew-formulae + - name: Configure Homebrew cache + uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0 + with: + path: | + ~/Library/Caches/Homebrew/virtualbox--* + ~/Library/Caches/Homebrew/vagrant--* + ~/Library/Caches/Homebrew/downloads/*--virtualbox-* + ~/Library/Caches/Homebrew/downloads/*--vagrant-* + key: brew-${{ hashFiles('.github/brew-formulae') }} + restore-keys: brew- + - name: Install Homebrew dependencies + run: | + env HOMEBREW_NO_AUTO_UPDATE=1 brew install virtualbox vagrant diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 420b401..b7e3c63 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,7 +5,7 @@ on: jobs: molecule: name: Molecule - runs-on: macos-12 + runs-on: macos-13 strategy: matrix: scenario: