2023-09-29 01:57:42 +02:00
|
|
|
name: StyLua
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
2023-09-29 02:14:06 +02:00
|
|
|
StyLuacheck:
|
2023-09-29 02:08:42 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-04-17 17:40:49 +02:00
|
|
|
- name: Install cargo
|
|
|
|
run: sudo apt update && sudo apt install -y cargo
|
|
|
|
|
2024-04-10 13:47:52 +02:00
|
|
|
- name: Install StyLua from crates.io
|
2024-04-08 12:28:57 +02:00
|
|
|
uses: baptiste0928/cargo-install@v3
|
|
|
|
with:
|
|
|
|
crate: stylua
|
|
|
|
version: 0.20.0
|
|
|
|
|
2023-09-29 02:08:42 +02:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
2024-04-08 12:28:57 +02:00
|
|
|
- name: Check code formatting
|
|
|
|
run: stylua -c .
|