From 5f6f5a735de082be8e048abc47012de3d61d1e33 Mon Sep 17 00:00:00 2001 From: kylo252 <59826753+kylo252@users.noreply.github.com> Date: Thu, 15 Jul 2021 18:29:59 +0200 Subject: [Feature] Add an installer for Stylua (#977) --- .github/workflows/format.yaml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/format.yaml b/.github/workflows/format.yaml index 0dfbdbfa..1b9b6649 100644 --- a/.github/workflows/format.yaml +++ b/.github/workflows/format.yaml @@ -16,13 +16,10 @@ jobs: - name: Prepare dependencies run: | - sudo apt update - sudo apt install -y curl - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y - cargo install stylua - + sudo apt install -y curl unzip --no-install-recommends + bash ./utils/installer/install_stylua.sh + - name: Check formatting run: | - cp ./utils/.stylua.toml . - stylua -c . + ./utils/stylua --config-path ./utils/.stylua.toml -c . -- cgit v1.2.3