From 722ae4552a44b0916c0cf845a81a736ed9035fa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20=C5=A0tefka?= Date: Thu, 24 Oct 2024 16:27:24 +0200 Subject: [PATCH] Update CI workflow to use Lua version 5.3 * **Install Luarocks**: Specify Lua version 5.3 * **Install Stylua**: Specify Lua version 5.3 * **Install Lua-Language-Server**: Specify Lua version 5.3 * Delete `ci.yml` file --- .github/workflows/ci.yml | 10 +++++---- ci.yml | 47 ---------------------------------------- 2 files changed, 6 insertions(+), 51 deletions(-) delete mode 100644 ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d0fb48c..0575280 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,10 +9,11 @@ jobs: - name: Install Luarocks run: | sudo apt-get update - sudo apt-get install -y luarocks + sudo apt-get install -y luarocks lua5.3 + sudo luarocks --lua-version=5.3 install luarocks - name: Install Stylua run: | - sudo luarocks install stylua + sudo luarocks --lua-version=5.3 install stylua - name: Run Stylua run: | stylua --config-path .stylua.toml . --exclude lib/cc-tweaked @@ -24,10 +25,11 @@ jobs: - name: Install Luarocks run: | sudo apt-get update - sudo apt-get install -y luarocks + sudo apt-get install -y luarocks lua5.3 + sudo luarocks --lua-version=5.3 install luarocks - name: Install Lua-Language-Server run: | - sudo luarocks install lua-language-server + sudo luarocks --lua-version=5.3 install lua-language-server - name: Run Lua-Language-Server continue-on-error: true run: | diff --git a/ci.yml b/ci.yml deleted file mode 100644 index 2661808..0000000 --- a/ci.yml +++ /dev/null @@ -1,47 +0,0 @@ -name: CI - -on: [push, pull_request] - -jobs: - format: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Install Luarocks - run: | - sudo apt-get update - sudo apt-get install -y luarocks - - - name: Install Stylua - run: | - sudo luarocks install stylua - - - name: Run Stylua - run: | - stylua --config-path .stylua.toml . --exclude lib/cc-tweaked - - static-analysis: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Install Luarocks - run: | - sudo apt-get update - sudo apt-get install -y luarocks - - - name: Install Lua-Language-Server - run: | - sudo luarocks install lua-language-server - - - name: Run Lua-Language-Server - continue-on-error: true - run: | - lua-language-server --logpath . --check . - - - name: Parse Lua-Language-Server Output - run: | - lua parse_lua_ls_output.lua ./check.json