GitHub Actions did not check failure in run.bat.

I just noticed a build problem in the Kotlin code
was detected by GitHub Actions in Linux and Mac OS,
but not in Windows. It marked the Windows test as
a success, even though the output clearly shows that
run.bat failed. I theorize that the steps inside
the file .github/workflows/astronomy-engine-tests.yml
are not being checked for errors after each step, but
only after all of them execute. So I have moved them
into a new batch file generate/commit_hook.bat, which
does check each step.

After pushing this change, all 3 builds should fail.
Once I get Windows to fail also, I will fix the failure.
This commit is contained in:
Don Cross
2022-04-12 20:12:05 -04:00
parent 5052920517
commit ae3dd35bee
2 changed files with 8 additions and 3 deletions

View File

@@ -97,6 +97,4 @@ jobs:
shell: cmd
run: |
cd generate
del output\vsop*.txt output\*.eph output\jupiter_moons.txt
call run.bat
call verify_clean.bat
call commit_hook.bat

7
generate/commit_hook.bat Normal file
View File

@@ -0,0 +1,7 @@
@echo off
del output\vsop*.txt output\*.eph output\jupiter_moons.txt
call run.bat
if errorlevel 1 (exit /b 1)
call verify_clean.bat
if errorlevel 1 (exit /b 1)
exit /b 0