mirror of
https://github.com/Ukendio/jecs.git
synced 2025-08-04 11:19:17 +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
|
name: Run Luau Tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
outputs:
|
|
||||||
output1: ${{ steps.run_tests.outputs.result }}
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Project
|
- name: Checkout Project
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
@ -28,13 +25,11 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
output=$(./luau tests/world.luau)
|
output=$(./luau tests/world.luau)
|
||||||
echo "$output"
|
echo "$output"
|
||||||
echo "result=$output" >> "$GITHUB_OUTPUT"
|
echo "COMMAND_OUTPUT=$output" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Check Unit Tests
|
- name: Check Unit Tests
|
||||||
env:
|
|
||||||
OUTPUT1: ${{ needs.run_tests.outputs.result }}
|
|
||||||
run: |
|
run: |
|
||||||
if [[ "${{ needs.run_tests.outputs.result }}" == *"0 fails"* ]]; then
|
if [[ "$COMMAND_OUTPUT" == *"0 fails"* ]]; then
|
||||||
echo "Unit Tests Passed"
|
echo "Unit Tests Passed"
|
||||||
else
|
else
|
||||||
echo "Error: One or More Unit Tests Failed."
|
echo "Error: One or More Unit Tests Failed."
|
||||||
|
|
Loading…
Reference in a new issue