Recreate nuget.config with a proper feed for macos (#5793)

This commit is contained in:
Mikhail Timofeev
2022-06-22 21:20:37 +03:00
committed by GitHub
parent 8fd4d28990
commit 160d3cc825
2 changed files with 30 additions and 20 deletions
+4
View File
@@ -82,4 +82,8 @@ PREFERENCES_XAMARIN_DIR="${HOME}/Library/Preferences/Xamarin"
mkdir -p $PREFERENCES_XAMARIN_DIR mkdir -p $PREFERENCES_XAMARIN_DIR
/usr/libexec/PlistBuddy -c "add :AppleSdkRoot string /Applications/Xcode_${DEFAULT_XCODE_VERSION}.app" $PREFERENCES_XAMARIN_DIR/Settings.plist /usr/libexec/PlistBuddy -c "add :AppleSdkRoot string /Applications/Xcode_${DEFAULT_XCODE_VERSION}.app" $PREFERENCES_XAMARIN_DIR/Settings.plist
# Temporary workaround to recreate nuget.config file with a correct feed https://github.com/actions/virtual-environments/issues/5768
rm -rf $HOME/.config/NuGet/NuGet.Config
nuget config
invoke_tests "Xamarin" invoke_tests "Xamarin"
+6
View File
@@ -291,3 +291,9 @@ Describe "Xamarin Bundles" {
Validate-IdenticalFileContent -File1 $targetVersionPath -File2 $sourceVersionPath Validate-IdenticalFileContent -File1 $targetVersionPath -File2 $sourceVersionPath
} }
} }
Describe "Nuget" {
It "Nuget config contains nuget.org feed" {
Get-Content $env:HOME/.config/NuGet/NuGet.Config | Out-String | Should -Match "nuget.org"
}
}