From c5f3b16d7f44a187c5cefe4c7c622a0b8e678acc Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Thu, 25 Aug 2022 22:42:34 +0300 Subject: tests: Use upstream provided GH Action for Luacheck --- .github/workflows/luacheck.yml | 13 +++++++++++++ .github/workflows/test.yml | 26 -------------------------- README.md | 1 + 3 files changed, 14 insertions(+), 26 deletions(-) create mode 100644 .github/workflows/luacheck.yml diff --git a/.github/workflows/luacheck.yml b/.github/workflows/luacheck.yml new file mode 100644 index 00000000..ffcb08fe --- /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@v3 + - name: Luacheck + uses: lunarmodules/luacheck@v1 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c5d3a0e4..7af0a598 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,27 +18,6 @@ jobs: run: | shellcheck ./configure - ############################################################################## - LuaLint: - runs-on: "ubuntu-latest" - - steps: - - uses: actions/checkout@master - - - uses: leafo/gh-actions-lua@v8.0.0 - with: - luaVersion: "5.4" - - - uses: leafo/gh-actions-luarocks@v4.0.0 - - - name: Prep - run: | - luarocks install luacheck - - - name: Luacheck - run: | - luacheck . - ############################################################################## TestMatrix: strategy: @@ -60,13 +39,8 @@ jobs: run: | luarocks install busted luarocks install cluacov - luarocks install luacheck luarocks install busted-htest - - name: Luacheck - run: | - luacheck . - - name: Unit Test run: | eval $(luarocks path) diff --git a/README.md b/README.md index 3e22e06e..5d77ed89 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ A package manager for Lua modules. [![Build Status](https://github.com/luarocks/luarocks/actions/workflows/test.yml/badge.svg)](https://github.com/luarocks/luarocks/actions) +[![Lint Status](https://github.com/luarocks/luarocks/actions/workflows/Luacheck/badge.svg)](https://github.com/luarocks/luarocks/actions/workflows/luacheck.yml) [![Build Status](https://ci.appveyor.com/api/projects/status/4x4630tcf64da48i/branch/master?svg=true)](https://ci.appveyor.com/project/hishamhm/luarocks/branch/master) [![Coverage Status](https://codecov.io/gh/luarocks/luarocks/coverage.svg?branch=master)](https://codecov.io/gh/luarocks/luarocks/branch/master) [![Join the chat at https://gitter.im/luarocks/luarocks](https://badges.gitter.im/luarocks/luarocks.svg)](https://gitter.im/luarocks/luarocks) -- cgit v1.2.3-55-g6feb