Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: packaging with validation #440

Merged
merged 11 commits into from
Nov 30, 2021
Merged

Conversation

bruno-garcia
Copy link
Member

@bruno-garcia bruno-garcia commented Nov 29, 2021

Failing will show what's missing and what's extra:

image

#skip-changelog

Partially resolves #431

@bruno-garcia bruno-garcia changed the base branch from main to fix/packaging November 29, 2021 19:51
@bruno-garcia bruno-garcia force-pushed the fix/packaging-with-validation branch from 2ea258e to 1047b78 Compare November 29, 2021 19:52
@bruno-garcia bruno-garcia changed the title fix/packaging with validation test: packaging with validation Nov 29, 2021
scripts/pack.ps1 Outdated
@@ -1,3 +1,4 @@
Remove-Item "package-release" -Recurse
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes the script reentrant

@bruno-garcia
Copy link
Member Author

Works:
image

I mean fails, because in CI we have alias'ed stuff. Just need to update the snapshot and profit

Base automatically changed from fix/packaging to main November 30, 2021 11:07
# Verifies the contents of the UPM package against a snapshot file
# 'dotnet build' and 'pack.ps1' must have already been run

# To accept a new snapshot file, run 'pwsh ./test.ps1 accept'
Copy link
Contributor

@bitsandfoxes bitsandfoxes Nov 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# To accept a new snapshot file, run 'pwsh ./test.ps1 accept'
# To accept a new snapshot file, run 'pwsh ./test/Scripts.Tests/test-pack-contents.ps1 accept'

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The path is below this line so I avoided a copy paste here

@bruno-garcia bruno-garcia merged commit dd1351d into main Nov 30, 2021
@bruno-garcia bruno-garcia deleted the fix/packaging-with-validation branch November 30, 2021 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Additional validation of package created in CI
2 participants