diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2959d64..70635ae 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,12 +1,18 @@ -name: Luacheck +name: Lain + on: [push] -jobs: - Luacheck_Tests: + +permissions: + contents: read + +jobs: + linting: runs-on: ubuntu-latest steps: - - run: echo "Running tests triggered by a ${{ github.event_name }} event." - - run: echo "Testing ${{ github.ref }} from ${{ github.repository }} on ${{ runner.os }}" + - run: | + echo "Running tests triggered by a ${{ github.event_name }} event." + echo "Testing ${{ github.ref }} from ${{ github.repository }} on ${{ runner.os }}" - name: Check out code uses: actions/checkout@v3 - name: Run tests - uses: lunarmodules/luacheck@v0 + uses: lunarmodules/luacheck@v0 diff --git a/.luacheckrc b/.luacheckrc index 5889780..811a783 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -6,6 +6,8 @@ globals = { "client", "screen", "mouse" } +-- https://luacheck.readthedocs.io/en/stable/warnings.html ignore = { - "131", + "113", + "131" }