From 0b123fb0bdf86855adce973580a9a344fcd1bdc4 Mon Sep 17 00:00:00 2001 From: MysticalOS Date: Fri, 12 Apr 2024 20:30:21 -0400 Subject: [PATCH] Update challenges workflows --- .github/workflows/ci.yml | 4 ++-- .github/workflows/luals.yml | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/luals.yml 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() }}