File tree Expand file tree Collapse file tree 1 file changed +0
-64
lines changed Expand file tree Collapse file tree 1 file changed +0
-64
lines changed Original file line number Diff line number Diff line change @@ -20,76 +20,12 @@ permissions:
2020 statuses : write
2121
2222jobs :
23- strip-comments :
24- runs-on : ubuntu-latest
25- steps :
26- - uses : actions/checkout@v3
27- - run : |
28- curl -sSfL https://raw.githubusercontent.com/bleonheart/Useful-Python-Scripts/refs/heads/main/files/remove_lua_comments.py -o remove_lua_comments.py || curl -sSfL https://raw.githubusercontent.com/bleonheart/Useful-Python-Scripts/main/files/remove_lua_comments.py -o remove_lua_comments.py
29- python3 remove_lua_comments.py .
30- tar --exclude=.git -cf workspace.tar .
31- - uses : actions/upload-artifact@v4
32- with :
33- name : workspace
34- path : workspace.tar
35- overwrite : true
36- retention-days : 1
37-
38- format-glua :
39- needs : strip-comments
40- runs-on : ubuntu-latest
41- steps :
42- - uses : actions/checkout@v3
43- - uses : actions/download-artifact@v4
44- with :
45- name : workspace
46- path : .
47- - run : |
48- tar -xf workspace.tar
49- rm -f workspace.tar
50- - name : Download glualint binary
51- env :
52- GLUALINT_VERSION : " 1.29.0"
53- run : |
54- set -euo pipefail
55- sudo apt-get update -y
56- sudo apt-get install -y unzip file
57- arch="$(uname -m)"
58- case "$arch" in
59- x86_64) asset="glualint-${GLUALINT_VERSION}-x86_64-linux.zip" ;;
60- aarch64|arm64) asset="glualint-${GLUALINT_VERSION}-aarch64-linux.zip" ;;
61- *) echo "Unsupported architecture: $arch" >&2; exit 1 ;;
62- esac
63- url="https://github.com/FPtje/GLuaFixer/releases/download/${GLUALINT_VERSION}/${asset}"
64- curl -fLsS "$url" -o glualint.zip
65- unzip -o glualint.zip
66- chmod +x glualint
67- ./glualint --version
68- - name : Pretty-print all Lua files
69- run : |
70- find . -type f -name "*.lua" -print0 | xargs -0 ./glualint --pretty-print-files
71- tar --exclude=.git -cf workspace.tar .
72- - uses : actions/upload-artifact@v4
73- with :
74- name : workspace
75- path : workspace.tar
76- overwrite : true
77- retention-days : 1
78-
7923 linter :
80- needs : format-glua
8124 runs-on : ubuntu-latest
8225 steps :
8326 - uses : actions/checkout@v3
8427 with :
8528 path : modules
86- - uses : actions/download-artifact@v4
87- with :
88- name : workspace
89- path : .
90- - run : |
91- tar -xf workspace.tar
92- rm -f workspace.tar
9329 - uses : leafo/gh-actions-lua@v8.0.0
9430 with :
9531 luaVersion : 5.2
You can’t perform that action at this time.
0 commit comments