aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2023-05-01 07:56:17 +0200
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2023-09-10 16:23:21 +0200
commitb6b70ae19915b87f78938eb576ab6def9354b1c5 (patch)
treecfef3d6d02f366000af90318191f2b3d9270d2d9
parent9f8f287c6139b8b8ff2809f4d1aebb57021cd043 (diff)
downloadrneovim-b6b70ae19915b87f78938eb576ab6def9354b1c5.tar.gz
rneovim-b6b70ae19915b87f78938eb576ab6def9354b1c5.tar.bz2
rneovim-b6b70ae19915b87f78938eb576ab6def9354b1c5.zip
ci: install stylua from their releases
It's quicker to grab the .zip file rather than using homebrew.
-rw-r--r--.github/workflows/test.yml12
1 files changed, 7 insertions, 5 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index f27e58644c..585e0223f0 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -35,13 +35,15 @@ jobs:
steps:
- uses: actions/checkout@v4
- - name: Set up Homebrew
- uses: Homebrew/actions/setup-homebrew@master
-
- name: Install dependencies
+ run: ./.github/scripts/install_deps.sh
+
+ - name: Install stylua
run: |
- ./.github/scripts/install_deps.sh
- brew install stylua
+ URL=$(curl -L https://api.github.com/repos/JohnnyMorganz/StyLua/releases/latest | jq -r '.assets[] | select(.name == "stylua-linux-x86_64.zip") | .browser_download_url')
+ wget --directory-prefix="$BIN_DIR" "$URL"
+ (cd "$BIN_DIR"; unzip stylua*.zip)
+ echo "$BIN_DIR" >> $GITHUB_PATH
- uses: ./.github/actions/cache