Skip to content

[STORY-2981] Use Scalingo lua-linter and lua-tests actions#13

Merged
briceamen merged 3 commits intomasterfrom
feat/STORY-2981/lua-actions
Dec 2, 2025
Merged

[STORY-2981] Use Scalingo lua-linter and lua-tests actions#13
briceamen merged 3 commits intomasterfrom
feat/STORY-2981/lua-actions

Conversation

@briceamen
Copy link
Copy Markdown
Contributor

This PR adds CI workflow using Scalingo lua-linter and lua-tests GitHub actions.

@notion-workspace
Copy link
Copy Markdown

@briceamen briceamen force-pushed the feat/STORY-2981/lua-actions branch from 364136f to 5d203d1 Compare November 28, 2025 15:46
@briceamen briceamen self-assigned this Nov 28, 2025
@briceamen briceamen marked this pull request as ready for review November 28, 2025 15:52
@briceamen briceamen requested a review from EtienneM November 28, 2025 15:52
Copy link
Copy Markdown
Member

@EtienneM EtienneM left a comment

Choose a reason for hiding this comment

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

A couple of questions, but already approving.

sudo chmod +x /usr/local/bin/resty-busted

# Export LUA paths (include lib directory for the rollbar module)
echo "LUA_PATH=${GITHUB_WORKSPACE}/lib/?.lua;$(luarocks --tree "${LUAROCKS_TREE}" path --lr-path)" >> "${GITHUB_ENV}"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I just thought of something. Is it really useful to use LUA_PATH like here:

https://github.com/Scalingo/actions/blob/main/lua-linter/scripts/run-lua-lint.sh#L8-L11

And there:

https://github.com/Scalingo/actions/blob/main/lua-linter/action.yml#L11-L18

?

I mean, from what I understand of GitHub Action, the fact that you write to GITHUB_ENV makes LUA_PATH configured anyway in the action environment. No need to do anything else. WDYT? Could you quickly try to remove the LUA_PATH things in the actions repository?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

question: shouldn't we update something in the dev env to also use this script to execute the specs?

@briceamen briceamen force-pushed the feat/STORY-2981/lua-actions branch from 57f24fe to 8cac385 Compare November 28, 2025 16:28
@briceamen briceamen merged commit 7a4921a into master Dec 2, 2025
5 checks passed
@briceamen briceamen deleted the feat/STORY-2981/lua-actions branch December 2, 2025 08:34
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.

2 participants