From a96c1bb9557112515ed392c4de0f0822e51a9244 Mon Sep 17 00:00:00 2001 From: EncodedVenom Date: Sat, 13 Jul 2024 19:54:21 -0400 Subject: [PATCH] attempt 3 --- .github/workflows/ci.yaml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1e4b002..c1b21f6 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -22,13 +22,18 @@ jobs: - name: Run Unit Tests id: run_tests + outputs: + output1: ${{ steps.run_tests.outputs.result }} run: | - ./luau tests/world.luau >> "$GITHUB_OUTPUT" - echo "$GITHUB_OUTPUT" + output=$(./luau tests/world.luau) + echo "$output" + echo "result=$output" >> "$GITHUB_OUTPUT" - name: Check Unit Tests + env: + OUTPUT1: ${{ needs.run_tests.outputs.result }} run: | - if [[ "$GITHUB_OUTPUT" == *"0 fails"* ]]; then + if [[ "${{ needs.run_tests.outputs.result }}" == *"0 fails"* ]]; then echo "Unit Tests Passed" else echo "Error: One or More Unit Tests Failed."