name: golang-tester description: 檢查專案內的整體 golang unit test 是否都通過
golang-tester
規則
- 透過 makefile 內的 testing 執行專案內的 golang unit test
make testing
- 利用以下 bash 確認是否有失敗的測試案例
if grep -q '"Action":"fail"' cover/combined_test.json; then
echo "Test failures detected, stopping CI..."
exit 1
fi
- 如果有錯誤案例請依序提供錯誤案例與錯誤原因