Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
fluong6 committed Apr 26, 2024
1 parent 5a83dda commit 6fb5c4b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
1 change: 1 addition & 0 deletions .yamato/_triggers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ run_ci_test_against_new_ngo_version:
name: ⚡ Run CI test against new NGO version ⚡
dependencies:
- .yamato/project-pack.yml#pack_com.unity.multiplayer.samples.coop
- .yamato/ngo_version.yml#update_ngo
triggers:
external:
source: [email protected]:Unity-Technologies/com.unity.netcode.gameobjects.git
Expand Down
19 changes: 14 additions & 5 deletions .yamato/project-pack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,21 @@ pack_{{ project.name }}:
image: package-ci/ubuntu:stable
flavor: b1.small
commands:
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
- upm-ci project pack --project-path {{ project.path }}
{% if "ExternalPush" == "ExternalPush" -%}
dependencies:
- .yamato/ngo_version.yml#update_ngo
{% if $YAMATO_TRIGGER_TYPE == "ExternalPush" -%}
- command: |-
sudo apt-get install jq
sudo yum install jq
echo release/1.9.0 >> release.txt
number_variable=$(sed -n 's/^release\/\([0-9.]*\)$/\1/p' release.txt)
echo $number_variable >> test1.txt
cat test1.txt
pwd
sed -i 's/"com\.unity\.netcode\.gameobjects": "[^"]*"/"com.unity.netcode.gameobjects": "'"$number_variable"'"/' Packages/manifest.json
cat Packages/manifest.json
sed -i 's/YAMATO_TRIGGER_BRANCH/number_variable' .yamato/ngo_version.yml
{% endif -%}
- command: npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
- command: upm-ci project pack --project-path {{ project.path }}
artifacts:
packages:
paths:
Expand Down

0 comments on commit 6fb5c4b

Please sign in to comment.