ci: add formatting check ci

This commit is contained in:
amrbashir
2022-05-15 14:37:47 +02:00
parent 2321d1f1f7
commit 7150b700c2
3 changed files with 26 additions and 1 deletions

20
.github/workflows/ci.yml vendored Normal file
View File

@@ -0,0 +1,20 @@
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
format_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: lua format check
uses: JohnnyMorganz/stylua-action@1.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --color always --check lua/