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