2023-09-29 01:57:42 +02:00
|
|
|
name: StyLua
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
2024-04-18 18:52:51 +02:00
|
|
|
StyLua:
|
2023-09-29 02:08:42 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-12-12 16:42:27 +01:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
|
2024-04-17 18:38:05 +02:00
|
|
|
- name: Update repositories
|
|
|
|
run: sudo apt update
|
2024-04-17 17:40:49 +02:00
|
|
|
- name: Install cargo
|
2024-12-12 16:42:27 +01:00
|
|
|
uses: ./.github/workflows/actions/cache-apt-pkgs-action
|
2024-04-17 18:38:05 +02:00
|
|
|
with:
|
2024-04-18 19:08:41 +02:00
|
|
|
packages: cargo libssh2-1
|
2024-04-17 17:40:49 +02:00
|
|
|
|
2024-04-10 13:47:52 +02:00
|
|
|
- name: Install StyLua from crates.io
|
2024-12-12 16:42:27 +01:00
|
|
|
uses: ./.github/workflows/actions/cargo-install
|
2024-04-08 12:28:57 +02:00
|
|
|
with:
|
|
|
|
crate: stylua
|
|
|
|
version: 0.20.0
|
|
|
|
|
|
|
|
- name: Check code formatting
|
|
|
|
run: stylua -c .
|