tests: Use upstream provided GH Action for Luacheck
parent
a0bc05dcc7
commit
c5f3b16d7f
|
@ -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
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue