Skip to content

Commit

Permalink
feat(ci/cd): add stylua action (#12)
Browse files Browse the repository at this point in the history
* feat(ci/cd): add stylua action

* docs: Add StyLua disclaimer to README

* fix(ci/cd-stylua): Secret started with GITHUB_

* fix(ci/cd-stylua): Missing name, on, jobs
  • Loading branch information
jiriks74 authored Sep 28, 2023
1 parent 2d57aa2 commit fb129b1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/stylua.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: StyLua
on: [push, pull_request]
jobs:
StyLua check:
- uses: actions/checkout@v3
- uses: JohnnyMorganz/stylua-action@v3
with:
token: ${{ secrets.GH_TOKEN }}
version: v0.8.2 # NOTE: we recommend pinning to a specific version in case of formatting changes
# CLI arguments
args: --check .
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ errors: `luacheck lua`
**Please use [Conventional Commits](https://www.conventionalcommits.org/) if you want to contribute.
It makes everyones jobs easier.**

**This project uses [StyLua](https://github.com/JohnnyMorganz/StyLua). Please format your code using StyLua for better readability**

Pull requests are very welcome, feel free to open an issue to work on
or message [me (@jiriks74)](https://discordapp.com/users/517810049360461837) on my
[Discord server](https://discord.gg/cCq3qcB4jB)!
Expand Down

0 comments on commit fb129b1

Please sign in to comment.