diff --git a/nuget/dependency-solver/project.csproj b/nuget/dependency-solver/project.csproj new file mode 100644 index 00000000..0ff41b0a --- /dev/null +++ b/nuget/dependency-solver/project.csproj @@ -0,0 +1,9 @@ + + + net8.0 + + + + + + diff --git a/tests/smoke-nuget-dependency-solver.yaml b/tests/smoke-nuget-dependency-solver.yaml new file mode 100644 index 00000000..93fb8a40 --- /dev/null +++ b/tests/smoke-nuget-dependency-solver.yaml @@ -0,0 +1,141 @@ +input: + job: + package-manager: nuget + allowed-updates: + - dependency-name: CS-Script.Core + experiments: + nuget_dependency_solver: true + ignore-conditions: + - dependency-name: CS-Script.Core + version-requirement: '>2.0.0' + source: + provider: github + repo: dependabot/smoke-tests + directory: /nuget/dependency-solver + branch: feature-DependencySolver + commit: a231bf1742104118162b79b4267f6d0cffe967c2 + credentials: + - host: github.com + password: $LOCAL_GITHUB_ACCESS_TOKEN + type: git_source + username: x-access-token +output: + - type: update_dependency_list + expect: + data: + dependencies: + - name: CS-Script.Core + requirements: + - file: /nuget/dependency-solver/project.csproj + groups: + - dependencies + requirement: 1.3.1 + source: null + version: 1.3.1 + - name: Microsoft.CodeAnalysis.Analyzers + requirements: [] + version: 2.9.6 + - name: Microsoft.CodeAnalysis.Common + requirements: [] + version: 3.4.0 + - name: Microsoft.CodeAnalysis.CSharp + requirements: [] + version: 3.4.0 + - name: Microsoft.CodeAnalysis.CSharp.Scripting + requirements: [] + version: 3.4.0 + - name: Microsoft.CodeAnalysis.Scripting.Common + requirements: + - file: /nuget/dependency-solver/project.csproj + groups: + - dependencies + requirement: 3.4.0 + source: null + version: 3.4.0 + - name: Microsoft.Extensions.DependencyModel + requirements: [] + version: 3.1.2 + dependency_files: + - /nuget/dependency-solver/project.csproj + - type: create_pull_request + expect: + data: + base-commit-sha: a231bf1742104118162b79b4267f6d0cffe967c2 + dependencies: + - name: CS-Script.Core + previous-requirements: + - file: /nuget/dependency-solver/project.csproj + groups: + - dependencies + requirement: 1.3.1 + source: null + previous-version: 1.3.1 + requirements: + - file: /nuget/dependency-solver/project.csproj + groups: + - dependencies + requirement: 2.0.0 + source: + nuspec_url: https://api.nuget.org/v3-flatcontainer/cs-script.core/2.0.0/cs-script.core.nuspec + source_url: null + type: nuget_repo + url: https://api.nuget.org/v3/index.json + version: 2.0.0 + directory: /nuget/dependency-solver + - name: Microsoft.CodeAnalysis.Scripting.Common + previous-requirements: + - file: /nuget/dependency-solver/project.csproj + groups: + - dependencies + requirement: 3.4.0 + source: null + previous-version: 3.4.0 + requirements: + - file: /nuget/dependency-solver/project.csproj + groups: + - dependencies + requirement: 3.6.0 + source: + nuspec_url: https://api.nuget.org/v3-flatcontainer/microsoft.codeanalysis.scripting.common/3.6.0/microsoft.codeanalysis.scripting.common.nuspec + source_url: null + type: nuget_repo + url: https://api.nuget.org/v3/index.json + version: 3.6.0 + directory: /nuget/dependency-solver + updated-dependency-files: + - content: | + + + net8.0 + + + + + + + content_encoding: utf-8 + deleted: false + directory: /nuget/dependency-solver + name: project.csproj + operation: update + support_file: false + type: file + pr-title: Bump CS-Script.Core and Microsoft.CodeAnalysis.Scripting.Common in /nuget/dependency-solver + pr-body: "Bumps [CS-Script.Core](https://github.com/oleg-shilo/cs-script.core) and [Microsoft.CodeAnalysis.Scripting.Common](https://github.com/dotnet/roslyn). These dependencies needed to be updated together.\nUpdates `CS-Script.Core` from 1.3.1 to 2.0.0\n
\nRelease notes\n

Sourced from CS-Script.Core's releases.

\n
\n

Release v2.0.0.0

\n

The first .NET5 release

\n

This is the first CS-Script.Core release that targets .NET 5.\nThis build is to be re-versioned as v4.0.0.0 and published on https://github.com/oleg-shilo/cs-script as "CS-Script".

\n

After that the repository will be decommissioned and the product will be fully managed from https://github.com/oleg-shilo/cs-script

\n
\n

Deployment

\n

Ubuntu (terminal)

\n
repo=https://github.com/oleg-shilo/cs-script.core/releases/download/v2.0.0.0/; file=cs-script_2.0-0.deb; rm $file; wget $repo$file; sudo dpkg -i $file\n
\n

Windows (choco)

\n
choco install cs-script.core --version=2.0.0.0 \n
\n

Manual\nJust unpack the corresponding 7z file and start using the script engine executable cscs.\nIf you prefer you can build a shim exe css for an easy launch of the script engine process:

\n
cscs -self-exe\n
\n

The same shim/symbolic link is created if you are installing the CS-Script as a package.

\n
\n

Changes

\n

CLI

\n\n

CSScriptLib

\n\n\n
\n

... (truncated)

\n
\n
\nCommits\n\n
\n
\n\nUpdates `Microsoft.CodeAnalysis.Scripting.Common` from 3.4.0 to 3.6.0\n
\nRelease notes\n

Sourced from Microsoft.CodeAnalysis.Scripting.Common's releases.

\n
\n

.NET 5.0 Preview 2

\n

Release Notes\nInstall Instructions

\n\n
\n
\n
\nCommits\n\n
\n
\n" + commit-message: |- + Bump CS-Script.Core and Microsoft.CodeAnalysis.Scripting.Common + + Bumps [CS-Script.Core](https://github.com/oleg-shilo/cs-script.core) and [Microsoft.CodeAnalysis.Scripting.Common](https://github.com/dotnet/roslyn). These dependencies needed to be updated together. + + Updates `CS-Script.Core` from 1.3.1 to 2.0.0 + - [Release notes](https://github.com/oleg-shilo/cs-script.core/releases) + - [Commits](https://github.com/oleg-shilo/cs-script.core/compare/v1.3.1...v2.0.0.0) + + Updates `Microsoft.CodeAnalysis.Scripting.Common` from 3.4.0 to 3.6.0 + - [Release notes](https://github.com/dotnet/roslyn/releases) + - [Changelog](https://github.com/dotnet/roslyn/blob/main/docs/Breaking%20API%20Changes.md) + - [Commits](https://github.com/dotnet/roslyn/commits/v3.6.0) + - type: mark_as_processed + expect: + data: + base-commit-sha: a231bf1742104118162b79b4267f6d0cffe967c2