Skip to content

Commit

Permalink
fix(ci/cd): Move StyLua from action to cargo + command
Browse files Browse the repository at this point in the history
[#68] StyLUA check is not working for PRs from forks

https://openproject.stefka.eu/work_packages/68
  • Loading branch information
jiriks74 committed Apr 8, 2024
1 parent 65f93ee commit b31d130
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/stylua.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 .

0 comments on commit b31d130

Please sign in to comment.