Skip to content

Commit cd154af

Browse files
chore: use xray for verifying package (#2944)
Co-authored-by: Noel Stephens <[email protected]>
1 parent dc021c6 commit cd154af

File tree

2 files changed

+2843
-2
lines changed

2 files changed

+2843
-2
lines changed

.yamato/project-pack.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,13 @@ pack_{{ project.name }}:
1010
commands:
1111
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
1212
- upm-ci project pack --project-path {{ project.path }}
13+
- upm-pvp xray --packages "upm-ci~/packages/*.tgz" --results upm-ci~/xray
14+
- upm-pvp require "$XRAY_PROFILE" --allow-missing --results upm-ci~/xray --exemptions upm-ci~/xray/new-exemptions.json || true
15+
- upm-pvp require "$XRAY_PROFILE ./pvp-exemptions.json" --results upm-ci~/xray
1316
artifacts:
1417
packages:
1518
paths:
16-
- "upm-ci~/packages/**/*"
19+
- "upm-ci~/**"
1720
{% endfor -%}
1821

1922
# Pack minimal project with different versions of dependencies
@@ -35,10 +38,13 @@ pack_{{ project.name }}_{{ dependency.name }}@{{ dependency.version }}:
3538
- unity-config settings project-path {{ project.path }}
3639
- unity-config project add dependency {{ dependency.name }}@{{ dependency.version }}
3740
- upm-ci project pack --project-path {{ project.path }}
41+
- upm-pvp xray --packages "upm-ci~/packages/*.tgz" --results upm-ci~/xray
42+
- upm-pvp require "$XRAY_PROFILE" --allow-missing --results upm-ci~/xray --exemptions upm-ci~/xray/new-exemptions.json || true
43+
- upm-pvp require "$XRAY_PROFILE ./pvp-exemptions.json" --results upm-ci~/xray
3844
artifacts:
3945
packages:
4046
paths:
41-
- "upm-ci~/packages/**/*"
47+
- "upm-ci~/**"
4248
{% endfor -%}
4349
{% endif -%}
4450
{% endfor -%}

0 commit comments

Comments
 (0)