A simple script that adds luau binaries to your path in a github workflow.
Now available on the GitHub Marketplace!
Put this before your steps you want to use luau with:
- name: Install Luau
uses: encodedvenom/install-luau@v3
It's that simple.
Once you have this done, you can use it in your CI scripts. Here's an example from Jecs's CI script:
- name: Run Unit Tests
id: run_tests
run: |
output=$(luau test/tests.luau)
echo "$output"
if [[ "$output" == *"0 fails"* ]]; then
echo "Unit Tests Passed"
else
echo "Error: One or More Unit Tests Failed."
exit 1
fi
This project officially supports windows-latest
and ubuntu-latest
. For unknown reasons, the macOS runner will not play nice, and therefore should not be used alongside this action.