{% metadata_file .yamato/project.metafile %} --- {% for editor in blocking_test_editors %} {% for platform in test_platforms %} test_{{ platform.name }}_{{ editor.version }}: name : Test {{ editor.version }} on {{ platform.name }} agent: type: {{ platform.type }} image: {{ platform.image }} flavor: {{ platform.flavor}} commands: - npm install upm-ci-utils@stable -g --registry {{ urls.upm }} - upm-ci package test -u {{ editor.version }} --package-path . --type package-tests --extra-create-project-arg="-upmNoDefaultPackages" artifacts: logs: paths: - "upm-ci~/test-results/**/*" dependencies: - .yamato/pack.yml#pack {% endfor %} {% endfor %} {% for editor in nonblocking_test_editors %} {% for platform in test_platforms %} test_{{ platform.name }}_{{ editor.version }}: name : Test {{ editor.version }} on {{ platform.name }} agent: type: {{ platform.type }} image: {{ platform.image }} flavor: {{ platform.flavor}} commands: - npm install upm-ci-utils@stable -g --registry {{ urls.upm }} - upm-ci package test -u {{ editor.version }} --package-path . --type package-tests --extra-create-project-arg="-upmNoDefaultPackages" artifacts: logs: paths: - "upm-ci~/test-results/**/*" dependencies: - .yamato/pack.yml#pack {% endfor %} {% endfor %} # Validate the package on each editor version and each platform # Validation only occurs in editmode. {% for editor in blocking_test_editors %} {% for platform in test_platforms %} validate_{{ platform.name }}_{{ editor.version }}: name : Validate {{ editor.version }} on {{ platform.name }} agent: type: {{ platform.type }} image: {{ platform.image }} flavor: {{ platform.flavor}} commands: - npm install upm-ci-utils@stable -g --registry {{ urls.upm }} - upm-ci package test -u {{ editor.version }} --package-path . --type vetting-tests --platform editmode --extra-create-project-arg="-upmNoDefaultPackages" artifacts: logs: paths: - "upm-ci~/test-results/**/*" dependencies: - .yamato/pack.yml#pack {% endfor %} {% endfor %} test_trigger: name: Tests Trigger triggers: branches: only: - "main" pull_requests: - targets: only: - "/.*/" dependencies: - .yamato/pack.yml#pack {% for editor in blocking_test_editors %} {% for platform in test_platforms %} - .yamato/test.yml#test_{{platform.name}}_{{editor.version}} - .yamato/test.yml#validate_{{platform.name}}_{{editor.version}} {% endfor %} {% endfor %} {% for editor in nonblocking_test_editors %} {% for platform in test_platforms %} - .yamato/test.yml#test_{{platform.name}}_{{editor.version}} {% endfor %} {% endfor %}