Skip to content

Test new folder structure with workflows#4

Merged
ChrisonSimtian merged 7 commits into
mainfrom
refactoring/change-folder-layout
Jul 20, 2025
Merged

Test new folder structure with workflows#4
ChrisonSimtian merged 7 commits into
mainfrom
refactoring/change-folder-layout

Conversation

@ChrisonSimtian

Copy link
Copy Markdown
Collaborator

merging back into master in order to get new github workflows to run

@ChrisonSimtian ChrisonSimtian requested a review from Copilot July 20, 2025 01:54

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull Request Overview

This PR restructures the project folder hierarchy and migrates from xUnit to TUnit testing framework to prepare for new GitHub workflows. The changes organize source code into src/ and test code into tests/ directories while updating the build configuration to support the new structure.

Key changes include:

  • Migration from xUnit to TUnit testing framework with updated assertions
  • Reorganization of project structure with src/ and tests/ directories
  • Introduction of Directory.Build.props files for centralized configuration

Reviewed Changes

Copilot reviewed 21 out of 117 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
tests/TvdbClient.Tests/TvdbClient.Tests.csproj New test project configuration for TUnit framework
tests/TvdbClient.Tests/Provider/TvdbTokenProviderUnitTests.cs Migrated test from xUnit to TUnit attributes and removed logging dependencies
tests/TvdbClient.Tests/Converters/*.cs New converter test files using TUnit framework and Shouldly assertions
tests/Directory.Build.props Centralized test project configuration with TUnit packages
src/TvdbClient/TvdbClient.csproj Simplified project file with common properties moved to Directory.Build.props
src/Directory.Build.props Centralized source project configuration with package metadata
.github/workflows/*.yml Updated workflow paths and added new release/coverage workflows

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.x' # Adjust to your .NET version

Copilot AI Jul 20, 2025

Copy link

Choose a reason for hiding this comment

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

The .NET version comment indicates '8.x' but the project targets net9.0. Update the dotnet-version to '9.x' to match the project's target framework.

Suggested change
dotnet-version: '8.x' # Adjust to your .NET version
dotnet-version: '9.x' # Adjust to your .NET version

Copilot uses AI. Check for mistakes.
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.x' # Adjust to your .NET version

Copilot AI Jul 20, 2025

Copy link

Choose a reason for hiding this comment

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

The .NET version comment indicates '8.x' but the project targets net9.0. Update the dotnet-version to '9.x' to match the project's target framework.

Suggested change
dotnet-version: '8.x' # Adjust to your .NET version
dotnet-version: '9.x' # Adjust to your .NET version

Copilot uses AI. Check for mistakes.
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.x'

Copilot AI Jul 20, 2025

Copy link

Choose a reason for hiding this comment

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

The .NET version should be '9.x' to match the project's target framework (net9.0).

Suggested change
dotnet-version: '8.x'
dotnet-version: '9.x'

Copilot uses AI. Check for mistakes.
echo "## NuGet Package" >> release_notes.md
echo "This release is available on NuGet:" >> release_notes.md
echo '```' >> release_notes.md
echo "dotnet add package YourPackageName --version ${{ needs.build-and-test.outputs.version }}" >> release_notes.md

Copilot AI Jul 20, 2025

Copy link

Choose a reason for hiding this comment

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

The placeholder 'YourPackageName' should be replaced with the actual package name 'TvdbClient' based on the project structure.

Suggested change
echo "dotnet add package YourPackageName --version ${{ needs.build-and-test.outputs.version }}" >> release_notes.md
echo "dotnet add package TvdbClient --version ${{ needs.build-and-test.outputs.version }}" >> release_notes.md

Copilot uses AI. Check for mistakes.
@ChrisonSimtian ChrisonSimtian merged commit 45c8de5 into main Jul 20, 2025
0 of 5 checks passed
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.

2 participants