Repository navigation
ci: 添加命令行自动化测试 workflow - #44
Closed
Dame-time-0034 wants to merge 4 commits into
Closed
Dame-time-0034 wants to merge 4 commits into
Dame-time-0034 wants to merge 4 commits into
Conversation
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
这个 PR 做什么
让 GitHub Actions 能自动运行引擎的自动化测试,不用人打开编辑器点按钮。
以前怎么做,现在怎么做
以前:打开编辑器,Window → Test Automation,手动勾选测试,再点 Start Tests。
现在:CI 里用一条命令完成:
CI 的流程是:编译编辑器 → 生成一个空工程 → 跑测试 → 读测试报告 → 有失败就让检查变红。
我在服务器上实际验证了什么
System.Core.Misc.Timespan连续跑 2 次,都是 Passed,退出码 0。-NoEnginePlugins,不加会因为个别引擎插件没有编译而启动失败。index.json、index.html能正常生成。AsyncIODelete测试在 Linux 上会崩溃,所以默认测试集没有选它。怎么判断测试有没有通过
不能只看退出码。编辑器在测试失败时也会返回 0,所以 CI 会读取
index.json里的failed字段来判断。如果编辑器本身崩溃(例如退出码 139),检查会直接失败。注意事项
test_filter。GIT_CODE导致构建直接失败的问题:没有 secret 时,和现有 Linux CI 一样使用仓库里已有的口令。Closes #11