Abbreviate strict
in PHP
#492
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lua | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
linting: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Lua | |
uses: leafo/gh-actions-lua@v10 | |
- name: Set up Luarocks | |
uses: leafo/gh-actions-luarocks@v4 | |
- name: Install Luacheck | |
run: | | |
luarocks install luacheck | |
- name: Install StyLua | |
run: | | |
wget -q https://github.com/JohnnyMorganz/StyLua/releases/download/v0.18.2/stylua-linux-x86_64.zip | |
unzip stylua-linux-x86_64.zip | |
chmod u+x stylua | |
- name: Lint Lua files | |
run: | | |
PATH="$PATH:." make lint-lua |