diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 686e3ab..352ac22 100755 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -15,23 +15,29 @@ jobs: - name: 1. Checkout Repository Code uses: actions/checkout@v4 - - name: 2. Install Lua Dependencies + - name: 2. Install Core Lua Dependencies run: | - echo "Sanctifying runner with Lua tools..." + echo "Sanctifying runner with core Lua environment..." # Use apt-get for the Ubuntu-based runner environment sudo apt-get update - sudo apt-get install -y lua5.1 luarocks luacheck - sudo luarocks install busted + sudo apt-get install -y lua5.1 luarocks - - 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: | echo "Scanning Lua scripture..." + # The luacheck command is now available from the luarocks installation luacheck --std lua51 . - - name: 4. Perform Unit Inquisition (Busted) + - name: 5. Perform Unit Inquisition (Busted) run: | echo "Initiating unit tests..." - # The workspace is already checked out, so we can copy the file directly. cp lib/json.lua skyweave/ busted --lua=lua5.1 --verbose spec/