-
Notifications
You must be signed in to change notification settings - Fork 15
added GitHub CI and other minor edits eyeing Lua 5.5 #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the clarification!
| - name: Install busted | ||
| run: luarocks install busted |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.