From f4e92f6291617cd989126510a7dc653e8cf28799 Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Fri, 22 Dec 2023 00:44:00 +0300 Subject: ci: Replace custom workflow installing Luacheck with dedicated action (#14) --- .github/workflows/lint.yml | 38 -------------------------------------- .github/workflows/luacheck.yml | 13 +++++++++++++ 2 files changed, 13 insertions(+), 38 deletions(-) delete mode 100644 .github/workflows/lint.yml create mode 100644 .github/workflows/luacheck.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index 0b54968..0000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: Lint - -concurrency: - # for PR's cancel the running task, if another commit is pushed - group: ${{ github.workflow }} ${{ github.ref }} - cancel-in-progress: ${{ github.event_name == 'pull_request' }} - -on: - # build on PR and push-to-main. This works for short-lived branches, and saves - # CPU cycles on duplicated tests. - # For long-lived branches that diverge, you'll want to run on all pushes, not - # just on push-to-main. - pull_request: {} - push: - branches: - - master - - -jobs: - lint: - runs-on: ubuntu-20.04 - steps: - - name: Checkout - uses: actions/checkout@v3 - - - uses: leafo/gh-actions-lua@v10 - with: - luaVersion: "5.4" - - - uses: leafo/gh-actions-luarocks@v4 - - - name: dependencies - run: | - luarocks install luacheck - - - name: lint - run: | - luacheck . diff --git a/.github/workflows/luacheck.yml b/.github/workflows/luacheck.yml new file mode 100644 index 0000000..9cb784c --- /dev/null +++ b/.github/workflows/luacheck.yml @@ -0,0 +1,13 @@ +name: Luacheck + +on: [push, pull_request] + +jobs: + + luacheck: + runs-on: ubuntu-22.04 + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Luacheck + uses: lunarmodules/luacheck@v1 -- cgit v1.2.3-55-g6feb