Github操作:“找不到命令”

时间:2020-03-20 23:23:34

标签: github-actions

我正在从Travis CI迁移到Github Actions的过程中,尽管有一个命令在我的测试套件(https://github.com/dosisod/SHIMON/runs/523208794?check_suite_focus=true)中存在问题:

test $(command) -le 2

返回:

test 2 -le 2: command not found

过去是这样的:

[[ $(command) -le 2 ]]

尽管我得到了相同的结果。基本上,我需要做一个单线的if语句:如果错误数超过2,则返回1(测试失败),否则返回0(测试通过)。

Github Actions运行的环境是否不支持这些功能?如何使用if语句来实现这种行为?

0 个答案:

没有答案