-
-
Notifications
You must be signed in to change notification settings - Fork 11
49 lines (37 loc) · 1.31 KB
/
linter.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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/[email protected]
# with:
# luaVersion: '5.1'
# - name: Set up Luarocks
# uses: leafo/[email protected]
# - 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