diff options
| author | Caleb Maclennan <caleb@alerque.com> | 2022-08-25 22:42:34 +0300 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2022-08-25 17:30:47 -0300 |
| commit | c5f3b16d7f44a187c5cefe4c7c622a0b8e678acc (patch) | |
| tree | 4fa83ce929b1aa6a2f47e25b0c3bc11b08e71a99 | |
| parent | a0bc05dcc7f44b94fb4585c560928ba9be6d8bdc (diff) | |
| download | luarocks-c5f3b16d7f44a187c5cefe4c7c622a0b8e678acc.tar.gz luarocks-c5f3b16d7f44a187c5cefe4c7c622a0b8e678acc.tar.bz2 luarocks-c5f3b16d7f44a187c5cefe4c7c622a0b8e678acc.zip | |
tests: Use upstream provided GH Action for Luacheck
| -rw-r--r-- | .github/workflows/luacheck.yml | 13 | ||||
| -rw-r--r-- | .github/workflows/test.yml | 26 | ||||
| -rw-r--r-- | README.md | 1 |
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 @@ | |||
| 1 | name: Luacheck | ||
| 2 | |||
| 3 | on: [ push, pull_request ] | ||
| 4 | |||
| 5 | jobs: | ||
| 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) |
| @@ -3,6 +3,7 @@ | |||
| 3 | A package manager for Lua modules. | 3 | A package manager for Lua modules. |
| 4 | 4 | ||
| 5 | [](https://github.com/luarocks/luarocks/actions) | 5 | [](https://github.com/luarocks/luarocks/actions) |
| 6 | [](https://github.com/luarocks/luarocks/actions/workflows/luacheck.yml) | ||
| 6 | [](https://ci.appveyor.com/project/hishamhm/luarocks/branch/master) | 7 | [](https://ci.appveyor.com/project/hishamhm/luarocks/branch/master) |
| 7 | [](https://codecov.io/gh/luarocks/luarocks/branch/master) | 8 | [](https://codecov.io/gh/luarocks/luarocks/branch/master) |
| 8 | [](https://gitter.im/luarocks/luarocks) | 9 | [](https://gitter.im/luarocks/luarocks) |
