Skip to content

Commit 5a18eb4

Browse files
committed
feat(workflow & stylua): Enable CI (code style check)
1 parent 3b148ad commit 5a18eb4

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.github/workflows/format_check.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: stylua
2+
on: [push, pull_request]
3+
4+
jobs:
5+
stylua:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v2
9+
- uses: JohnnyMorganz/stylua-action@1.0.0
10+
with:
11+
token: ${{ secrets.GITHUB_TOKEN }}
12+
args: --check --config-path=stylua.toml .

stylua.toml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
column_width = 120
2+
line_endings = "Unix"
3+
indent_type = "Tabs"
4+
indent_width = 4
5+
quote_style = "AutoPreferDouble"
6+
call_parentheses = "Always"

0 commit comments

Comments
 (0)