Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Migrate solution to .slnx format and update workflows to use the ne…
…w solution file
  • Loading branch information
AnnaSasDev committed Nov 25, 2025
commit ff7da20e95f3d1474eee26f75ea86ae27bbd3dfe
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,11 @@ updates:
commit-message:
prefix: "Chore(deps): "
include: "scope"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
commit-message:
prefix: "Chore(deps): "
include: "scope"
6 changes: 3 additions & 3 deletions .github/workflows/onPullRequest-TestDotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
dotnet-version: '9.x'

- name: Restore dependencies
run: dotnet restore CodeOfChaos.GeneratorTools.sln
run: dotnet restore CodeOfChaos.GeneratorTools.slnx

- name: Build
run: dotnet build CodeOfChaos.GeneratorTools.sln --configuration Release --no-restore -p:GeneratePackageOnBuild=false -p:IsPackable=false
run: dotnet build CodeOfChaos.GeneratorTools.slnx --configuration Release --no-restore -p:GeneratePackageOnBuild=false -p:IsPackable=false

- name: Run tests
run: dotnet test CodeOfChaos.GeneratorTools.sln --configuration Release --no-restore --no-build
run: dotnet test --solution CodeOfChaos.GeneratorTools.slnx --configuration Release --no-restore --no-build
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ jobs:
dotnet-version: '9.x'

- name: Restore dependencies
run: dotnet restore CodeOfChaos.GeneratorTools.sln
run: dotnet restore CodeOfChaos.GeneratorTools.slnx

- name: Build
run: dotnet build CodeOfChaos.GeneratorTools.sln --configuration Release --no-restore
run: dotnet build CodeOfChaos.GeneratorTools.slnx --configuration Release --no-restore

# Ensure that the tests must pass
# The job will fail automatically if any test fails because `dotnet test` exits with a non-zero code
- name: Run tests - Extensions
run: dotnet test CodeOfChaos.GeneratorTools.sln -c Release --no-restore --no-build
run: dotnet test --solution CodeOfChaos.GeneratorTools.slnx -c Release --no-restore --no-build

- name: Publish to NuGet
env:
Expand Down
17 changes: 17 additions & 0 deletions CodeOfChaos.GeneratorTools.slnx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<Solution>
<Folder Name="/.devtools/">
<Project Path="src/Tools.CodeOfChaos.GeneratorTools/Tools.CodeOfChaos.GeneratorTools.csproj" />
</Folder>
<Folder Name="/.devtools/github/">
<File Path=".github/workflows/onPullRequest-TestDotnet.yml" />
<File Path=".github/workflows/release.yml" />
<File Path=".github/workflows/workflow-todo.yml" />
</Folder>
<Folder Name="/src/">
<Project Path="src/CodeOfChaos.GeneratorTools/CodeOfChaos.GeneratorTools.csproj" />
</Folder>
<Folder Name="/tests/">
<Project Path="src/Benchmarks.CodeOfChaos.GeneratorTools/Benchmarks.CodeOfChaos.GeneratorTools.csproj" />
<Project Path="tests/Tests.CodeOfChaos.GeneratorTools/Tests.CodeOfChaos.GeneratorTools.csproj" />
</Folder>
</Solution>
5 changes: 5 additions & 0 deletions global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"test": {
"runner": "Microsoft.Testing.Platform"
}
}