docs for world:targets #785
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: unit-testing | |
| on: [push, pull_request, workflow_dispatch] | |
| jobs: | |
| run: | |
| name: Run Luau Tests | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 2 | |
| steps: | |
| - name: Checkout Project | |
| uses: actions/checkout@v4 | |
| - name: Install Rokit | |
| uses: CompeyDev/setup-rokit@v0.1.2 | |
| - 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 |