bruh
This commit is contained in:
@@ -15,23 +15,29 @@ jobs:
|
|||||||
- name: 1. Checkout Repository Code
|
- name: 1. Checkout Repository Code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: 2. Install Lua Dependencies
|
- name: 2. Install Core Lua Dependencies
|
||||||
run: |
|
run: |
|
||||||
echo "Sanctifying runner with Lua tools..."
|
echo "Sanctifying runner with core Lua environment..."
|
||||||
# Use apt-get for the Ubuntu-based runner environment
|
# Use apt-get for the Ubuntu-based runner environment
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y lua5.1 luarocks luacheck
|
sudo apt-get install -y lua5.1 luarocks
|
||||||
sudo luarocks install busted
|
|
||||||
|
|
||||||
- name: 3. Run Luacheck Scrutiny
|
- name: 3. Install Lua Tools via Luarocks
|
||||||
|
run: |
|
||||||
|
echo "Installing Luacheck and Busted via Luarocks..."
|
||||||
|
# This method is more reliable than relying on apt for Lua packages
|
||||||
|
sudo luarocks install busted
|
||||||
|
sudo luarocks install luacheck
|
||||||
|
|
||||||
|
- name: 4. Run Luacheck Scrutiny
|
||||||
run: |
|
run: |
|
||||||
echo "Scanning Lua scripture..."
|
echo "Scanning Lua scripture..."
|
||||||
|
# The luacheck command is now available from the luarocks installation
|
||||||
luacheck --std lua51 .
|
luacheck --std lua51 .
|
||||||
|
|
||||||
- name: 4. Perform Unit Inquisition (Busted)
|
- name: 5. Perform Unit Inquisition (Busted)
|
||||||
run: |
|
run: |
|
||||||
echo "Initiating unit tests..."
|
echo "Initiating unit tests..."
|
||||||
# The workspace is already checked out, so we can copy the file directly.
|
|
||||||
cp lib/json.lua skyweave/
|
cp lib/json.lua skyweave/
|
||||||
busted --lua=lua5.1 --verbose spec/
|
busted --lua=lua5.1 --verbose spec/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user