mirror of
https://github.com/Ukendio/jecs.git
synced 2025-08-04 03:09:18 +00:00
Try using git env
This commit is contained in:
parent
c7fd938526
commit
e2e3b002f3
1 changed files with 2 additions and 7 deletions
9
.github/workflows/ci.yaml
vendored
9
.github/workflows/ci.yaml
vendored
|
@ -7,9 +7,6 @@ jobs:
|
|||
name: Run Luau Tests
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
outputs:
|
||||
output1: ${{ steps.run_tests.outputs.result }}
|
||||
|
||||
steps:
|
||||
- name: Checkout Project
|
||||
uses: actions/checkout@v3
|
||||
|
@ -28,13 +25,11 @@ jobs:
|
|||
run: |
|
||||
output=$(./luau tests/world.luau)
|
||||
echo "$output"
|
||||
echo "result=$output" >> "$GITHUB_OUTPUT"
|
||||
echo "COMMAND_OUTPUT=$output" >> $GITHUB_ENV
|
||||
|
||||
- name: Check Unit Tests
|
||||
env:
|
||||
OUTPUT1: ${{ needs.run_tests.outputs.result }}
|
||||
run: |
|
||||
if [[ "${{ needs.run_tests.outputs.result }}" == *"0 fails"* ]]; then
|
||||
if [[ "$COMMAND_OUTPUT" == *"0 fails"* ]]; then
|
||||
echo "Unit Tests Passed"
|
||||
else
|
||||
echo "Error: One or More Unit Tests Failed."
|
||||
|
|
Loading…
Reference in a new issue