Skip to content

Conversation

@MariusJusc
Copy link
Contributor

@MariusJusc MariusJusc commented Nov 20, 2025

Extended the Build-And-Test pipeline to also execute net10 for compatibility purposes.

@MariusJusc MariusJusc self-assigned this Nov 20, 2025
@MariusJusc MariusJusc marked this pull request as ready for review November 20, 2025 13:13
JakubLinhart
JakubLinhart previously approved these changes Nov 20, 2025
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: ${{ matrix.dotnet-version }}
Copy link
Contributor

Choose a reason for hiding this comment

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

The build step builds both .NET 8, .NET 10, so executing it twice is waste.

Copy link
Contributor

Choose a reason for hiding this comment

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

The build was duplicating the work, not tests 😄. It was actually a good thing to run tests on both .NET 8 and .NET 10. I would prefer to have duplicated build with tests running on both .NET 8 & .NET 10. I guess this is still acceptable for FuncSharp.

Copy link
Contributor Author

@MariusJusc MariusJusc Nov 20, 2025

Choose a reason for hiding this comment

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

Hmm it looks likes it does run for both, but it fails for both 😄

image

Copy link
Contributor

Choose a reason for hiding this comment

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

Nice! Didn't notice this. But it looks like it doesn't execute any test 😄
image

https://github.com/MewsSystems/FuncSharp/runs/55938503031

But it looks like it was broken even before.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I'm looking into it if I can spot the issue

JakubLinhart
JakubLinhart previously approved these changes Nov 20, 2025
Comment on lines 42 to 46
- name: Test (.NET 8)
run: dotnet test --no-restore --no-build --configuration $config --framework net8.0 --logger "trx;LogFileName=test-results-net8.trx" || true

- name: Test (.NET 10)
run: dotnet test --no-restore --no-build --configuration $config --framework net10.0 --logger "trx;LogFileName=test-results-net10.trx" || true
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

JakubLinhart
JakubLinhart previously approved these changes Nov 20, 2025
@MariusJusc
Copy link
Contributor Author

@JakubLinhart Sorry to tag you again for a review, I managed to fix the issue and the tests are picked up and executed separately for net10 and net8

image

@MariusJusc MariusJusc merged commit cfca562 into master Nov 20, 2025
11 checks passed
@MariusJusc MariusJusc deleted the build-and-test-net10-support branch November 20, 2025 14:08
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.

3 participants