diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5b9beb1..3fd2b2f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,9 +15,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 with: - fetch-depth: 100 + fetch-depth: 0 - name: Install and run Luacheck uses: nebularg/actions-luacheck@v1 diff --git a/.github/workflows/luals.yml b/.github/workflows/luals.yml new file mode 100644 index 0000000..ce78898 --- /dev/null +++ b/.github/workflows/luals.yml @@ -0,0 +1,32 @@ +name: luals-checker + +on: + push: + branches: + - master + tags: + - "*" + pull_request: + branches: + - master + +run-name: LuaLS Check +jobs: + LuaLS-checker: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + path: ./workspace + - name: LuaLS check + uses: DeadlyBossMods/LuaLS-config@main + with: + luals-ref: 5623a84ea9a2b27dd7121f88dd995389c702eac1 + luals-check-dir: ${{ github.workspace }}/workspace + - name: Send Status to Discord + uses: nebularg/actions-discord-webhook@v1 + with: + webhook_url: ${{ secrets.DISCORD_WEBHOOK }} + status: ${{ job.status }} + if: ${{ github.event_name != 'pull_request' && failure() }}