From de5b4d4a9eef1115eddf8000b6d5c12d9910401c Mon Sep 17 00:00:00 2001 From: EncodedVenom <32179912+EncodedVenom@users.noreply.github.com> Date: Sun, 14 Jul 2024 16:05:50 -0400 Subject: [PATCH 1/3] Add timeout (#80) --- .github/workflows/ci.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index cb71dec..5ed58c3 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -6,6 +6,7 @@ jobs: run: name: Run Luau Tests runs-on: ubuntu-latest + timeout-minutes: 2 steps: - name: Checkout Project From 0ce38c9d93acaae2d2af0637f9544b9a9fb13fdf Mon Sep 17 00:00:00 2001 From: EncodedVenom <32179912+EncodedVenom@users.noreply.github.com> Date: Sun, 14 Jul 2024 20:32:02 -0400 Subject: [PATCH 2/3] 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 --- .github/workflows/ci.yaml | 20 +++++--------------- .github/workflows/release.yaml | 6 +++--- 2 files changed, 8 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 5ed58c3..6700e65 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -10,29 +10,19 @@ jobs: 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/install-luau@v1 - 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 + fi \ No newline at end of file diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 3b90293..5ded7e1 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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/setup-aftman@v0.3.0 @@ -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/setup-aftman@v0.3.0 From 86f241eae442d11f2812583de418b1aa36fa187a Mon Sep 17 00:00:00 2001 From: EncodedVenom <32179912+EncodedVenom@users.noreply.github.com> Date: Mon, 15 Jul 2024 13:10:56 -0400 Subject: [PATCH 3/3] Update ci.yaml (#82) --- .github/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6700e65..5e18765 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -13,7 +13,7 @@ jobs: uses: actions/checkout@v4 - name: Install Luau - uses: encodedvenom/install-luau@v1 + uses: encodedvenom/install-luau@v2.1 - name: Run Unit Tests id: run_tests @@ -25,4 +25,4 @@ jobs: else echo "Error: One or More Unit Tests Failed." exit 1 - fi \ No newline at end of file + fi