Skip to content

Commit

Permalink
chore: use pre-installed homebrew on ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
jokerttu committed Oct 30, 2024
1 parent ac235d0 commit 3cbf164
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/analyze.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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() }}
Expand Down

0 comments on commit 3cbf164

Please sign in to comment.