mirror of
https://github.com/cosinekitty/astronomy.git
synced 2026-05-19 06:17:03 -04:00
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:
4
.github/workflows/astronomy-engine-tests.yml
vendored
4
.github/workflows/astronomy-engine-tests.yml
vendored
@@ -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
7
generate/commit_hook.bat
Normal 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
|
||||
Reference in New Issue
Block a user