diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ed6aedc..68ca214 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,20 @@ jobs: - name: Run Tests run: | + set +e # Don't exit on error find libs -name "*test.luau" | while read -r file; do - echo "Running tests for library $file" - echo lune run "$file" - done \ No newline at end of file + echo "Running test: $file" + lune "$file" 2>&1 | tee -a test_output.log + echo "Exit code: $?" >> test_output.log + echo "----------------------------------------" >> test_output.log + done + set -e # Re-enable exit on error + echo "Full test output:" + cat test_output.log + + - name: Upload Results + if: always() + uses: actions/upload-artifact@v2 + with: + name: test-results + path: test_output.log \ No newline at end of file