GitHub Action to run StyLua, a Lua code formatter.
Installs the StyLua binary (from GitHub releases), and caches it. Any StyLua command can then be run.
- uses: actions/checkout@v2
- uses: JohnnyMorganz/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
# CLI arguments
args: --check .
# Specify `version` to pin a specific version, otherwise action will always use latest version/automatically update
GitHub token. Required since the binary is downloaded from GitHub releases (to speed download)
The arguments to pass to the StyLua binary
The version of StyLua to use. Follows semver syntax. If not specified, installs the latest release. It is recommended to pin your version so that updates to StyLua don't lead to unwanted changes in the action without explicitly updating.
Based off https://github.com/Roblox/setup-foreman, licensed under MIT