summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorkylo252 <[email protected]>2021-07-15 18:29:59 +0200
committerGitHub <[email protected]>2021-07-15 20:59:59 +0430
commit5f6f5a735de082be8e048abc47012de3d61d1e33 (patch)
tree85272d8ff3414c03daeca02db41969dc9d0215ae /.github/workflows
parent9ed28bce9631c5d540b32f8106973d84d487bcd7 (diff)
[Feature] Add an installer for Stylua (#977)
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/format.yaml11
1 files changed, 4 insertions, 7 deletions
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 .