Skip to content

Limit CI test targets by OS: run net8.0 on Linux and net48 on Windows only#2173

Merged
jzabroski merged 2 commits into
fluentmigrator:mainfrom
spopp23:feature/fix_pr_workflow
Nov 10, 2025
Merged

Limit CI test targets by OS: run net8.0 on Linux and net48 on Windows only#2173
jzabroski merged 2 commits into
fluentmigrator:mainfrom
spopp23:feature/fix_pr_workflow

Conversation

@spopp23

@spopp23 spopp23 commented Nov 10, 2025

Copy link
Copy Markdown
Contributor

The Windows job in CI was failing due to running a net48 test target on Linux (see PR #2171).
PR #2162 appears to have introduced an extra test run (net8.0 on Windows) although discussion suggested net48 should be Windows-only.

What I changed

Linux runners now execute tests only for net8.0.

Windows runners now execute tests only for net48.

Why

According to the comments on PR #2162 .NET 8.0 is supposed to run on Linux only; running it on Windows is unnecessary and fails.

Keeps net8.0 coverage on Linux while preserving net48 coverage on Windows.

Impact

Green CI on Windows again.

No loss of coverage—just correct platform targeting.

@spopp23
spopp23 requested a review from jzabroski as a code owner November 10, 2025 12:55
@spopp23
spopp23 force-pushed the feature/fix_pr_workflow branch from cfef7a6 to 678d672 Compare November 10, 2025 13:01
@jzabroski

Copy link
Copy Markdown
Collaborator

I changed it slightly; honestly, the way this is done is not great, I just haven't had the bandwidth to clean it up. Going to make some progress this month in prep for Microsoft releasing .NET 10 tomorrow.

@spopp23

spopp23 commented Nov 10, 2025

Copy link
Copy Markdown
Contributor Author

Yeah, I just noticed. Thank you!

I will close this PR then.

@spopp23 spopp23 closed this Nov 10, 2025
@jzabroski jzabroski reopened this Nov 10, 2025
@jzabroski

Copy link
Copy Markdown
Collaborator

We can still go with your approach as a base.

@jzabroski

Copy link
Copy Markdown
Collaborator

I was struggling to understand why this was still failing, and then I realized that its due to how I set-up permissions to prevent people from submitting PRs that change this file to execute Confused Deputy attacks and do things like potentially steal variables, viz a viz 'pull request targets' security feature of GitHub Actions.

Will merge; think we are good here.

@jzabroski
jzabroski merged commit dcf7d35 into fluentmigrator:main Nov 10, 2025
0 of 2 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