aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/stylua.yml (renamed from .github/workflows/ci.yml)12
1 files changed, 5 insertions, 7 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/stylua.yml
index 04ca8e81..b4498d93 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/stylua.yml
@@ -1,21 +1,19 @@
-name: Format Checker
+name: Stylua check
on:
push:
branches:
- - '*'
+ - 'main'
pull_request:
- branches:
- - '*'
jobs:
- fmt:
+ stylua:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- - name: Setup FMT
+ - name: Run Stylua check
uses: JohnnyMorganz/stylua-action@1.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
# CLI arguments
- args: ./lua/ --check
+ args: --check .