aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorleaf <leafot@gmail.com>2021-01-08 12:35:06 -0800
committerGitHub <noreply@github.com>2021-01-08 12:35:06 -0800
commit62fe2246ccb15139476e5a03648633ed69404250 (patch)
tree9c2c62ed8c8e9191800626a9cb228102796c2354
parentf8e36f87fc7d90be0612e8e53407f56e217fe49b (diff)
downloadlua-cjson-62fe2246ccb15139476e5a03648633ed69404250.tar.gz
lua-cjson-62fe2246ccb15139476e5a03648633ed69404250.tar.bz2
lua-cjson-62fe2246ccb15139476e5a03648633ed69404250.zip
Update CI (#68)
* update luarocks action * apt-get update * run tests on pull request as well
-rw-r--r--.github/workflows/test.yml5
1 files changed, 3 insertions, 2 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index a2076f1..95138ed 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -1,6 +1,6 @@
1name: test 1name: test
2 2
3on: [push] 3on: [push, pull_request]
4 4
5jobs: 5jobs:
6 test: 6 test:
@@ -29,7 +29,7 @@ jobs:
29 luaVersion: ${{ matrix.luaVersion }} 29 luaVersion: ${{ matrix.luaVersion }}
30 luaCompileFlags: CC=${{ matrix.cc }} 30 luaCompileFlags: CC=${{ matrix.cc }}
31 31
32 - uses: leafo/gh-actions-luarocks@v2 32 - uses: leafo/gh-actions-luarocks@master
33 33
34 - name: runtests.sh 34 - name: runtests.sh
35 env: 35 env:
@@ -42,6 +42,7 @@ jobs:
42 CC: ${{ matrix.cc }} 42 CC: ${{ matrix.cc }}
43 run: | 43 run: |
44 make PREFIX=.lua ${{ matrix.runtestArgs }} 44 make PREFIX=.lua ${{ matrix.runtestArgs }}
45 sudo apt-get update
45 sudo apt-get install -q valgrind libipc-run3-perl cppcheck cpanminus 46 sudo apt-get install -q valgrind libipc-run3-perl cppcheck cpanminus
46 sudo cpanm --notest Test::Base Test::LongString 47 sudo cpanm --notest Test::Base Test::LongString
47 48