1
0
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:
Jiří Štefka 2024-04-08 12:28:57 +02:00 committed by GitHub
parent 65f93ee9ed
commit f14ae7ef52
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 10 deletions

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