added GitHub CI and other minor edits eyeing Lua 5.5#34
added GitHub CI and other minor edits eyeing Lua 5.5#34daurnimator merged 2 commits intoluarocks:masterfrom
Conversation
* removed Travis CI badge
* use HTTPS on luarocks link
* reference `busted` from lunarmodules account on GitHub
| - name: Install luacheck | ||
| run: luarocks install luacheck | ||
|
|
||
| - name: Run luacheck | ||
| run: luacheck src spec |
There was a problem hiding this comment.
Luacheck supports GitHub Actions: https://github.com/lunarmodules/luacheck?tab=readme-ov-file#use-as-a-ci-job
| os: ["ubuntu-latest", "macos-latest", "windows-latest"] | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@master |
There was a problem hiding this comment.
As a general good practice / security measure, I think @master should never be used, and we should have pined version (using sha rather than tags)
There was a problem hiding this comment.
I agree with you on that matter. However, if you inspect other projects led by Hisham, you can see that he employs actions from the default branch most of the times.
-
LuaRocks:
- https://github.com/luarocks/luarocks/blob/ab7fbdec3f6fd9e5fa55d355580e0bfbece73140/.github/workflows/test.yml#L20-L25
- https://github.com/luarocks/luarocks/blob/ab7fbdec3f6fd9e5fa55d355580e0bfbece73140/.github/workflows/test.yml#L35-L51
- https://github.com/luarocks/luarocks/blob/ab7fbdec3f6fd9e5fa55d355580e0bfbece73140/.github/workflows/test.yml#L95-L103
- https://github.com/luarocks/luarocks/blob/ab7fbdec3f6fd9e5fa55d355580e0bfbece73140/.github/workflows/test.yml#L111-L119
So, I'm following his patterns on his repositories. If he (or any repo admin) requests it to be changed to a pinned commit SHA strategy, for sure I'll do.
| - name: Install busted | ||
| run: luarocks install busted |
There was a problem hiding this comment.
Busted supports GitHub Actions: https://github.com/lunarmodules/busted?tab=readme-ov-file#use-as-a-ci-job
|
For the sake of completeness, I'm going to link here an important comment written by myself regarding Lua 5.5 support: #32 (comment) |
daurnimator
left a comment
There was a problem hiding this comment.
Looks like an improvement on the status quo to me
|
It appears that cluacov doesn't support lua 5.5 yet: |
|
|
In the comment #32 (comment), I explained what has to be done (the set of PRs to be merged) for |

Changes
httpsscheme on luarocks linklunarmodulesonbustedlinkNotes
cluacovandluacovget published on LuaRocks website;Important
For the codecov badge to work correctly, a GitHub secret (named
CODECOV_TOKEN) has to be added to hold the codecov token.