mirror of
https://github.com/jiriks74/presence.nvim
synced 2024-11-23 20:37: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:
|
StyLuacheck:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install cargo-hack from crates.io
|
||||||
|
uses: baptiste0928/cargo-install@v3
|
||||||
|
with:
|
||||||
|
crate: stylua
|
||||||
|
version: 0.20.0
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: StyLua check
|
- name: Check code formatting
|
||||||
uses: JohnnyMorganz/stylua-action@v3
|
run: stylua -c .
|
||||||
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 .
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user