forked from m00nyONE/LibCustomNames
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1.3 KB
/
_tests-platform.yml
File metadata and controls
39 lines (37 loc) · 1.3 KB
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
name: Tests (Platform)
on:
workflow_call:
inputs:
NAMES_PATH:
required: true
type: string
jobs:
syntax-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check for syntax errors in Lua files
run: |
URL=$(curl -s https://api.github.com/repos/EmmyLuaLs/emmylua-analyzer-rust/releases/latest | jq -r '.assets[] | select(.name? | match("emmylua_check-linux-x64.tar.gz$")) | .browser_download_url')
if [ -n "$URL" ]; then
curl -L "$URL" -o emmylua_check-linux-x64.tar.gz
else
echo "::error:: ❌ File not found in latest release."
exit 1
fi
tar -xzf emmylua_check-linux-x64.tar.gz
chmod +x emmylua_check
./emmylua_check ${{ inputs.NAMES_PATH }}
check-duplicates:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check for duplicate definitions
run: python3 .github/scripts/tests/check-duplicates.py ${{ inputs.NAMES_PATH }}
check-color-formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check for correct formatting of colored name strings
run: python3 .github/scripts/tests/check-color-formatting.py ${{ inputs.NAMES_PATH }}