浏览代码

Run package tests with warn-as-error (#5290) (#5293)

/release_17_branch
GitHub 4 年前
当前提交
85e48d25
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 2
      .yamato/com.unity.ml-agents-coverage.yml
  2. 2
      .yamato/com.unity.ml-agents-test.yml

2
.yamato/com.unity.ml-agents-coverage.yml


{% if package.name == "com.unity.ml-agents.extensions" %}
pull_request.changes.any match "com.unity.ml-agents.extensions/**" OR
{% endif %}
pull_request.changes.any match ".yamato/com.unity.ml-agents-test.yml")
pull_request.changes.any match ".yamato/com.unity.ml-agents-coverage.yml")
{% endif %}
{% endfor %}
{% endfor %}

2
.yamato/com.unity.ml-agents-test.yml


flavor: {{ platform.flavor}}
commands:
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
- upm-ci project test -u {{ editor.version }} --project-path {{ editor.testProject }} --package-filter {{ package.name }} {{ noDefaultPackagesOptions }} --extra-utr-arg "reruncount=2"
- upm-ci package test -u {{ editor.version }} --package-path {{ package.name }} {{ noDefaultPackagesOptions }} --warnings-as-errors --extra-utr-arg "reruncount=2"
artifacts:
logs:
paths:

正在加载...
取消
保存