TWW BETA #65
Workflow file for this run
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 Code Quality | |
on: [pull_request] | |
jobs: | |
lint-and-format: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
# - name: Set up Lua | |
# uses: leafo/gh-actions-lua@v10.0.0 | |
# with: | |
# luaVersion: '5.1' | |
# - name: Set up Luarocks | |
# uses: leafo/gh-actions-luarocks@v4.3.0 | |
# - name: Install Luacheck | |
# run: | | |
# sudo apt-get install luarocks | |
# sudo luarocks install luacheck | |
# - name: Install Stylua | |
# run: | | |
# wget -qO- "https://github.com/JohnnyMorganz/StyLua/releases/latest/download/stylua-linux.zip" > stylua.zip | |
# unzip stylua.zip stylua | |
# chmod +x stylua | |
# sudo mv stylua /usr/local/bin/stylua | |
# # - name: Run Luacheck | |
# # run: luacheck ./APR-Core | |
# - name: Run Stylua | |
# run: stylua --check . | |
# - name: Commit and push changes | |
# run: | | |
# git config user.name "Aldric Ducreux" | |
# git config user.email "<>" | |
# git add -u | |
# git commit -am "Apply Lua code formatting and linting" || true | |
# git push --set-upstream https://${{ secrets.GIT_TOKEN }}@github.com/Azeroth-Pilot-Reloaded/azeroth-pilot-reloaded HEAD:dev | |