diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index 39fcb5b2..41f9caf3 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -58,16 +58,24 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Prepare luacheck + - name: Prepare run: | sudo apt-get update sudo apt-get install -y luarocks sudo luarocks install luacheck - - name: Prepare selene - uses: baptiste0928/cargo-install@v3 - with: - crate: selene - - name: Lint run: sudo make lint + + selene: + name: Selene + runs-on: ubuntu-22.04 + steps: + - name: Checkout sources + uses: actions/checkout@v2 + + - name: Run selene + uses: NTBBloodbath/selene-action@v1.0.0 + with: + token: ${{ secrets.GITHUB_TOKEN }} + args: --display-style quiet lua/plenary --allow-warnings diff --git a/Makefile b/Makefile index 3b99dbaf..09b7304d 100644 --- a/Makefile +++ b/Makefile @@ -10,4 +10,6 @@ generate_luassert_types: lint: luacheck lua/plenary + +lint-selene: selene --display-style quiet lua/plenary --allow-warnings