mirror of
https://github.com/jiriks74/presence.nvim
synced 2024-11-23 12:27:50 +01:00
fix(ci/cd): Move StyLua from action to cargo + command (#40)
* fix(ci/cd): Move StyLua from action to cargo + command [#68] StyLUA check is not working for PRs from forks https://openproject.stefka.eu/work_packages/68 * fix(formatting): fix bad formatting from #39
This commit is contained in:
parent
65f93ee9ed
commit
f14ae7ef52
15
.github/workflows/stylua.yml
vendored
15
.github/workflows/stylua.yml
vendored
@ -4,12 +4,13 @@ jobs:
|
||||
StyLuacheck:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Install cargo-hack from crates.io
|
||||
uses: baptiste0928/cargo-install@v3
|
||||
with:
|
||||
crate: stylua
|
||||
version: 0.20.0
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: StyLua check
|
||||
uses: JohnnyMorganz/stylua-action@v3
|
||||
with:
|
||||
token: ${{ secrets.GH_TOKEN }}
|
||||
version: v0.18.2 # NOTE: we recommend pinning to a specific version in case of formatting changes
|
||||
# CLI arguments
|
||||
args: --check .
|
||||
- name: Check code formatting
|
||||
run: stylua -c .
|
||||
|
@ -1,6 +1,6 @@
|
||||
-- Different plugin manager names
|
||||
return {
|
||||
["packer"] = "packer",
|
||||
["vim-plug"] = "vim-plug",
|
||||
["lazy"] = "lazy",
|
||||
["packer"] = "packer",
|
||||
["vim-plug"] = "vim-plug",
|
||||
["lazy"] = "lazy",
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user