Skip to content

Conversation

@luau-project
Copy link

Changes

  • Replaced Travis CI by GitHub CI
  • README
    • Replaced Travis CI badge by GitHub CI badge
    • Used https scheme on luarocks link
    • Used lunarmodules on busted link

Notes

  1. Ideally, this PR should be merged after rockspec: bump max lua version #33;
  2. CI for Lua 5.5 will keep failing until these other PRs (support Lua 5.5 cluacov#7 and fix(lua55): loop variables are constants now lunarmodules/luacov#118) get merged, and new versions of cluacov and luacov get 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.

    * removed Travis CI badge
    * use HTTPS on luarocks link
    * reference `busted` from lunarmodules account on GitHub
Comment on lines +39 to +43
- name: Install luacheck
run: luarocks install luacheck

- name: Run luacheck
run: luacheck src spec

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

os: ["ubuntu-latest", "macos-latest", "windows-latest"]

steps:
- uses: actions/checkout@master

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)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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!

Comment on lines +33 to +34
- name: Install busted
run: luarocks install busted

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@luau-project
Copy link
Author

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
Copy link
Member

For the codecov badge to work correctly, a GitHub secret (named CODECOV_TOKEN) has to be added to hold the codecov token.

Done.
image

Copy link
Member

@daurnimator daurnimator left a 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

@daurnimator daurnimator merged commit 76be386 into luarocks:master Jan 21, 2026
@daurnimator
Copy link
Member

It appears that cluacov doesn't support lua 5.5 yet:

src/cluacov/deepactivelines.c:18:2: error: #error unsupported Lua version
   18 | #error unsupported Lua version
      |  ^~~~~
src/cluacov/deepactivelines.c:35:8: error: unknown type name ‘Proto’
   35 | static Proto *get_proto(lua_State *L) {
      |        ^~~~~
src/cluacov/deepactivelines.c: In function ‘get_proto’:
src/cluacov/deepactivelines.c:36:14: error: ‘Closure’ undeclared (first use in this function)
   36 |     return ((Closure *) lua_topointer(L, 1))->l.p;
      |              ^~~~~~~
src/cluacov/deepactivelines.c:36:14: note: each undeclared identifier is reported only once for each function it appears in
src/cluacov/deepactivelines.c:36:23: error: expected expression before ‘)’ token
   36 |     return ((Closure *) lua_topointer(L, 1))->l.p;
      |                       ^
src/cluacov/deepactivelines.c: At top level:
src/cluacov/deepactivelines.c:150:43: error: unknown type name ‘Proto’
  150 | static void add_activelines(lua_State *L, Proto *proto) {
      |                                           ^~~~~
src/cluacov/deepactivelines.c: In function ‘l_deepactivelines’:
src/cluacov/deepactivelines.c:221:5: warning: implicit declaration of function ‘add_activelines’; did you mean ‘l_deepactivelines’? [-Wimplicit-function-declaration]
  221 |     add_activelines(L, get_proto(L));
      |     ^~~~~~~~~~~~~~~
      |     l_deepactivelines

Error: Build error: Failed compiling object src/cluacov/deepactivelines.o

@daurnimator
Copy link
Member

It appears that cluacov doesn't support lua 5.5 yet:

luarocks/cluacov#7

@luau-project
Copy link
Author

In the comment #32 (comment), I explained what has to be done (the set of PRs to be merged) for argparse tests pass for Lua 5.5. I think it is worth a read / review.

@luau-project luau-project deleted the use-github-ci branch January 21, 2026 03:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants