blob: 0dfbdbfa7afb36ad6b7160393fd978eca429c06a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
name: format
on:
push:
branches: '**'
pull_request:
branches:
- 'master'
- 'rolling'
jobs:
stylua-check:
name: "Formatting check with Stylua"
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- 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
- name: Check formatting
run: |
cp ./utils/.stylua.toml .
stylua -c .
|