1
0
Fork 0
mirror of https://github.com/jiriks74/presence.nvim synced 2024-12-27 18:42:35 +01:00

feat(ci/cd): add stylua action (#12)

* 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
This commit is contained in:
Jiří Štefka 2023-09-29 01:57:42 +02:00 committed by GitHub
parent 2d57aa297b
commit fb129b1de7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

11
.github/workflows/stylua.yml vendored Normal file
View file

@ -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 .

View file

@ -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)!