diff options
| author | leaf <leafot@gmail.com> | 2021-01-08 12:35:06 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-08 12:35:06 -0800 |
| commit | 62fe2246ccb15139476e5a03648633ed69404250 (patch) | |
| tree | 9c2c62ed8c8e9191800626a9cb228102796c2354 | |
| parent | f8e36f87fc7d90be0612e8e53407f56e217fe49b (diff) | |
| download | lua-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.yml | 5 |
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 @@ | |||
| 1 | name: test | 1 | name: test |
| 2 | 2 | ||
| 3 | on: [push] | 3 | on: [push, pull_request] |
| 4 | 4 | ||
| 5 | jobs: | 5 | jobs: |
| 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 | ||
