From d1d970025452108bdb20e26f4c6dabf0a04e4b5b Mon Sep 17 00:00:00 2001 From: Li Jin Date: Mon, 24 Jun 2024 09:19:44 +0800 Subject: [PATCH] Update tests.yml. --- .github/workflows/tests.yml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2ec00d8..6792043 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,14 +1,16 @@ name: brew test-bot + on: push: branches: - main pull_request: + jobs: test-bot: strategy: matrix: - os: [ubuntu-22.04, macos-13] + os: [ubuntu-22.04, macos-13, macos-14] runs-on: ${{ matrix.os }} steps: - name: Set up Homebrew @@ -16,16 +18,11 @@ jobs: uses: Homebrew/actions/setup-homebrew@master - name: Cache Homebrew Bundler RubyGems - id: cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ steps.set-up-homebrew.outputs.gems-path }} - key: ${{ runner.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }} - restore-keys: ${{ runner.os }}-rubygems- - - - name: Install Homebrew Bundler RubyGems - if: steps.cache.outputs.cache-hit != 'true' - run: brew install-bundler-gems + key: ${{ matrix.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }} + restore-keys: ${{ matrix.os }}-rubygems- - run: brew test-bot --only-cleanup-before @@ -38,7 +35,7 @@ jobs: - name: Upload bottles as artifact if: always() && github.event_name == 'pull_request' - uses: actions/upload-artifact@main + uses: actions/upload-artifact@v4 with: - name: bottles + name: bottles_${{ matrix.os }} path: '*.bottle.*'