diff --git a/.github/workflows/luacheck.yml b/.github/workflows/luacheck.yml index 87145d9..932d7a5 100644 --- a/.github/workflows/luacheck.yml +++ b/.github/workflows/luacheck.yml @@ -4,7 +4,13 @@ jobs: Luacheck: runs-on: ubuntu-latest steps: + - name: Update repositories + run: sudo apt update + - name: Install luarocks + uses: awalsh128/cache-apt-pkgs-action@latest + with: + packages: lua-check - name: Checkout uses: actions/checkout@v3 - name: Luacheck linter - uses: lunarmodules/luacheck@v1 + run: luacheck --config .luacheckrc . diff --git a/.github/workflows/stylua.yml b/.github/workflows/stylua.yml index e97113c..c941983 100644 --- a/.github/workflows/stylua.yml +++ b/.github/workflows/stylua.yml @@ -4,8 +4,12 @@ jobs: StyLuacheck: runs-on: ubuntu-latest steps: + - name: Update repositories + run: sudo apt update - name: Install cargo - run: sudo apt update && sudo apt install -y cargo + uses: awalsh128/cache-apt-pkgs-action@latest + with: + packages: cargo - name: Install StyLua from crates.io uses: baptiste0928/cargo-install@v3