-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/Ukendio/jecs
- Loading branch information
Showing
2 changed files
with
8 additions
and
17 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,32 +6,23 @@ jobs: | |
run: | ||
name: Run Luau Tests | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 2 | ||
|
||
steps: | ||
- name: Checkout Project | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Fetch Luau Latest Release | ||
run: curl -s https://api.github.com/repos/luau-lang/luau/releases/latest | grep /luau-ubuntu.zip | cut -d '"' -f 4 > luau-link.txt | ||
|
||
- name: Download Luau Latest Release | ||
run: wget -i luau-link.txt | ||
|
||
- name: Unzip binary | ||
run: unzip luau-ubuntu.zip | ||
- name: Install Luau | ||
uses: encodedvenom/[email protected] | ||
|
||
- name: Run Unit Tests | ||
id: run_tests | ||
run: | | ||
output=$(./luau test/tests.luau) | ||
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 | ||
- name: Cleanup Luau Binaries | ||
if: '!cancelled()' | ||
run: rm luau && rm luau-analyze && rm luau-compile && rm luau-ubuntu.zip && rm luau-link.txt |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Project | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Aftman | ||
uses: ok-nick/[email protected] | ||
|
@@ -35,7 +35,7 @@ jobs: | |
contents: write | ||
steps: | ||
- name: Checkout Project | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Download Jecs Build | ||
uses: actions/download-artifact@v3 | ||
|
@@ -59,7 +59,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Project | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Aftman | ||
uses: ok-nick/[email protected] | ||
|