mirror of
https://github.com/Ukendio/jecs.git
synced 2025-04-24 17:10:03 +00:00
Improve workflows and use dedicated install luau script for CI (#81)
* increment checkout version (v3 is deprecated) * Use action instead to simplify CI * inc version * increment version * Change script * inc version * Finalize the CI workflow stuff
This commit is contained in:
parent
de5b4d4a9e
commit
0ce38c9d93
2 changed files with 8 additions and 18 deletions
20
.github/workflows/ci.yaml
vendored
20
.github/workflows/ci.yaml
vendored
|
@ -10,29 +10,19 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Project
|
- name: Checkout Project
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Fetch Luau Latest Release
|
- name: Install Luau
|
||||||
run: curl -s https://api.github.com/repos/luau-lang/luau/releases/latest | grep /luau-ubuntu.zip | cut -d '"' -f 4 > luau-link.txt
|
uses: encodedvenom/install-luau@v1
|
||||||
|
|
||||||
- name: Download Luau Latest Release
|
|
||||||
run: wget -i luau-link.txt
|
|
||||||
|
|
||||||
- name: Unzip binary
|
|
||||||
run: unzip luau-ubuntu.zip
|
|
||||||
|
|
||||||
- name: Run Unit Tests
|
- name: Run Unit Tests
|
||||||
id: run_tests
|
id: run_tests
|
||||||
run: |
|
run: |
|
||||||
output=$(./luau test/tests.luau)
|
output=$(luau test/tests.luau)
|
||||||
echo "$output"
|
echo "$output"
|
||||||
if [[ "$output" == *"0 fails"* ]]; then
|
if [[ "$output" == *"0 fails"* ]]; then
|
||||||
echo "Unit Tests Passed"
|
echo "Unit Tests Passed"
|
||||||
else
|
else
|
||||||
echo "Error: One or More Unit Tests Failed."
|
echo "Error: One or More Unit Tests Failed."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Cleanup Luau Binaries
|
|
||||||
if: '!cancelled()'
|
|
||||||
run: rm luau && rm luau-analyze && rm luau-compile && rm luau-ubuntu.zip && rm luau-link.txt
|
|
6
.github/workflows/release.yaml
vendored
6
.github/workflows/release.yaml
vendored
|
@ -10,7 +10,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Project
|
- name: Checkout Project
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Aftman
|
- name: Install Aftman
|
||||||
uses: ok-nick/setup-aftman@v0.3.0
|
uses: ok-nick/setup-aftman@v0.3.0
|
||||||
|
@ -35,7 +35,7 @@ jobs:
|
||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Project
|
- name: Checkout Project
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Download Jecs Build
|
- name: Download Jecs Build
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
|
@ -59,7 +59,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Project
|
- name: Checkout Project
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Aftman
|
- name: Install Aftman
|
||||||
uses: ok-nick/setup-aftman@v0.3.0
|
uses: ok-nick/setup-aftman@v0.3.0
|
||||||
|
|
Loading…
Reference in a new issue