Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Check code format

on: ['push']

jobs:
check-format:
runs-on: ubuntu-latest
steps:
- name: Checkout this repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: Ana06/[email protected]
with:
filter: '*.lua'

- uses: leafo/gh-actions-lua@v9
- uses: leafo/gh-actions-luarocks@v4
- name: Install LuaFormat
run: |
luarocks install --server=https://luarocks.org/dev luaformatter
- name: Check formatting
run: |
./lua-format {{ steps.files.outputs.added_modified }} -c ./luaconfig.config --check