aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaleb Maclennan <caleb@alerque.com>2022-08-25 22:42:34 +0300
committerHisham Muhammad <hisham@gobolinux.org>2022-08-25 17:30:47 -0300
commitc5f3b16d7f44a187c5cefe4c7c622a0b8e678acc (patch)
tree4fa83ce929b1aa6a2f47e25b0c3bc11b08e71a99
parenta0bc05dcc7f44b94fb4585c560928ba9be6d8bdc (diff)
downloadluarocks-c5f3b16d7f44a187c5cefe4c7c622a0b8e678acc.tar.gz
luarocks-c5f3b16d7f44a187c5cefe4c7c622a0b8e678acc.tar.bz2
luarocks-c5f3b16d7f44a187c5cefe4c7c622a0b8e678acc.zip
tests: Use upstream provided GH Action for Luacheck
-rw-r--r--.github/workflows/luacheck.yml13
-rw-r--r--.github/workflows/test.yml26
-rw-r--r--README.md1
3 files changed, 14 insertions, 26 deletions
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 @@
1name: Luacheck
2
3on: [ push, pull_request ]
4
5jobs:
6
7 luacheck:
8 runs-on: ubuntu-22.04
9 steps:
10 - name: Checkout
11 uses: actions/checkout@v3
12 - name: Luacheck
13 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
@@ -19,27 +19,6 @@ jobs:
19 shellcheck ./configure 19 shellcheck ./configure
20 20
21 ############################################################################## 21 ##############################################################################
22 LuaLint:
23 runs-on: "ubuntu-latest"
24
25 steps:
26 - uses: actions/checkout@master
27
28 - uses: leafo/gh-actions-lua@v8.0.0
29 with:
30 luaVersion: "5.4"
31
32 - uses: leafo/gh-actions-luarocks@v4.0.0
33
34 - name: Prep
35 run: |
36 luarocks install luacheck
37
38 - name: Luacheck
39 run: |
40 luacheck .
41
42 ##############################################################################
43 TestMatrix: 22 TestMatrix:
44 strategy: 23 strategy:
45 matrix: 24 matrix:
@@ -60,13 +39,8 @@ jobs:
60 run: | 39 run: |
61 luarocks install busted 40 luarocks install busted
62 luarocks install cluacov 41 luarocks install cluacov
63 luarocks install luacheck
64 luarocks install busted-htest 42 luarocks install busted-htest
65 43
66 - name: Luacheck
67 run: |
68 luacheck .
69
70 - name: Unit Test 44 - name: Unit Test
71 run: | 45 run: |
72 eval $(luarocks path) 46 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 @@
3A package manager for Lua modules. 3A package manager for Lua modules.
4 4
5[![Build Status](https://github.com/luarocks/luarocks/actions/workflows/test.yml/badge.svg)](https://github.com/luarocks/luarocks/actions) 5[![Build Status](https://github.com/luarocks/luarocks/actions/workflows/test.yml/badge.svg)](https://github.com/luarocks/luarocks/actions)
6[![Lint Status](https://github.com/luarocks/luarocks/actions/workflows/Luacheck/badge.svg)](https://github.com/luarocks/luarocks/actions/workflows/luacheck.yml)
6[![Build Status](https://ci.appveyor.com/api/projects/status/4x4630tcf64da48i/branch/master?svg=true)](https://ci.appveyor.com/project/hishamhm/luarocks/branch/master) 7[![Build Status](https://ci.appveyor.com/api/projects/status/4x4630tcf64da48i/branch/master?svg=true)](https://ci.appveyor.com/project/hishamhm/luarocks/branch/master)
7[![Coverage Status](https://codecov.io/gh/luarocks/luarocks/coverage.svg?branch=master)](https://codecov.io/gh/luarocks/luarocks/branch/master) 8[![Coverage Status](https://codecov.io/gh/luarocks/luarocks/coverage.svg?branch=master)](https://codecov.io/gh/luarocks/luarocks/branch/master)
8[![Join the chat at https://gitter.im/luarocks/luarocks](https://badges.gitter.im/luarocks/luarocks.svg)](https://gitter.im/luarocks/luarocks) 9[![Join the chat at https://gitter.im/luarocks/luarocks](https://badges.gitter.im/luarocks/luarocks.svg)](https://gitter.im/luarocks/luarocks)