aboutsummaryrefslogtreecommitdiff
path: root/.github
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 /.github
parenta0bc05dcc7f44b94fb4585c560928ba9be6d8bdc (diff)
downloadluarocks-c5f3b16d7f44a187c5cefe4c7c622a0b8e678acc.tar.gz
luarocks-c5f3b16d7f44a187c5cefe4c7c622a0b8e678acc.tar.bz2
luarocks-c5f3b16d7f44a187c5cefe4c7c622a0b8e678acc.zip
tests: Use upstream provided GH Action for Luacheck
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/luacheck.yml13
-rw-r--r--.github/workflows/test.yml26
2 files changed, 13 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)