From 3cbf164777b327b17d1c2f02e670b9ae636f23eb Mon Sep 17 00:00:00 2001 From: Joonas Kerttula Date: Wed, 30 Oct 2024 15:54:16 +0200 Subject: [PATCH] chore: use pre-installed homebrew on ubuntu --- .github/workflows/analyze.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/analyze.yaml b/.github/workflows/analyze.yaml index a6e3374..4267924 100644 --- a/.github/workflows/analyze.yaml +++ b/.github/workflows/analyze.yaml @@ -70,11 +70,10 @@ jobs: with: path: /home/linuxbrew/.linuxbrew key: ${{ runner.os }}-linuxbrew - - name: Setup homebrew - uses: Homebrew/actions/setup-homebrew@master - name: Install swiftformat 0.54.6 if: steps.cache.outputs.cache-hit != 'true' run: | + eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 curl -O https://raw.githubusercontent.com/Homebrew/homebrew-core/4564fbc21a326c4eb349327ce327cbe983bf302a/Formula/s/swiftformat.rb echo 'brew "swiftformat.rb"' > Brewfile @@ -87,10 +86,12 @@ jobs: key: ${{ runner.os }}-linuxbrew - name: Formatter version run: | + eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" swiftformat --version - name: Run format if: ${{ success() || failure() }} run: | + eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" melos run format - name: Validate formatting if: ${{ success() || failure() }}