-
Notifications
You must be signed in to change notification settings - Fork 1
CI: Add Windows matrix leg with platform-conditional testing #143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
7a69d13
Initial plan
Copilot 321c64b
Add Windows matrix leg to CI workflow
Copilot b3c6cf9
Add explicit permissions block to CI workflow for security
Copilot 85cd4f8
Fix CI workflow based on review feedback
Copilot ec70dd9
Enable NuGet lock files for CI cache support
benaadams 2ee68ea
Add cache-dependency-path for NuGet lock files
benaadams File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| name: CI | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ master ] | ||
| pull_request: | ||
| branches: [ '**' ] | ||
|
|
||
| env: | ||
| DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | ||
| DOTNET_CLI_TELEMETRY_OPTOUT: true | ||
|
|
||
| jobs: | ||
| build-and-test: | ||
| runs-on: ${{ matrix.os }} | ||
| permissions: | ||
| contents: read | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: [ubuntu-latest, windows-latest] | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup .NET | ||
| uses: actions/setup-dotnet@v4 | ||
| with: | ||
| dotnet-version: '10.0.102' | ||
| cache: true | ||
| cache-dependency-path: '**/packages.lock.json' | ||
|
|
||
| - name: Restore dependencies | ||
| run: dotnet restore | ||
|
|
||
| - name: Build | ||
| run: dotnet build --configuration Release --no-restore | ||
|
|
||
| - name: Test (Linux) | ||
| if: runner.os == 'Linux' | ||
| run: dotnet test --configuration Release --no-build --verbosity normal | ||
|
|
||
| - name: Test (Windows - excluding Linux-only projects) | ||
| if: runner.os == 'Windows' | ||
| run: | | ||
| dotnet test test/Magma.Common.Facts --configuration Release --no-build --verbosity normal | ||
| dotnet test test/Magma.Internet.Ip.Facts --configuration Release --no-build --verbosity normal | ||
| dotnet test test/Magma.Link.Facts --configuration Release --no-build --verbosity normal | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| { | ||
| "version": 1, | ||
| "dependencies": { | ||
| "net10.0": { | ||
| "BenchmarkDotNet": { | ||
| "type": "Direct", | ||
| "requested": "[0.10.14, )", | ||
| "resolved": "0.10.14", | ||
| "contentHash": "pPM8h3fv4NUg9P3Qh5ga+Klmvh3FpJ0tblBHwTcsh0XjSHvwGc4/vRJYM6ix06evf58NQcge5Cyv1PBY83ZCwg==", | ||
| "dependencies": { | ||
| "BenchmarkDotNet.Core": "0.10.14" | ||
| } | ||
| }, | ||
| "BenchmarkDotNet.Core": { | ||
| "type": "Transitive", | ||
| "resolved": "0.10.14", | ||
| "contentHash": "f2B6ERn4sBCv4VVt699FYtfRfqX0NuMZoG1lXrzNkCKyPRjRWvreqqJ5aRTMf4PnosfUaylQezpi1yoITncCRQ==", | ||
| "dependencies": { | ||
| "Microsoft.DotNet.InternalAbstractions": "1.0.0", | ||
| "Microsoft.DotNet.PlatformAbstractions": "1.1.1", | ||
| "System.Xml.XPath.XmlDocument": "4.3.0" | ||
| } | ||
| }, | ||
| "Microsoft.DotNet.InternalAbstractions": { | ||
| "type": "Transitive", | ||
| "resolved": "1.0.0", | ||
| "contentHash": "AAguUq7YyKk3yDWPoWA8DrLZvURxB/LrDdTn1h5lmPeznkFUpfC3p459w5mQYQE0qpquf/CkSQZ0etiV5vRHFA==" | ||
| }, | ||
| "Microsoft.DotNet.PlatformAbstractions": { | ||
| "type": "Transitive", | ||
| "resolved": "1.1.1", | ||
| "contentHash": "m+IIxUg8Ev+g34H7CIcuILm3ZWWJNclsgYqc/j5n/QCKhcvRAeAn0byDI7zCqlDUwn6byXYrJxuZpuZh/5C/6g==" | ||
| }, | ||
| "System.Xml.XPath.XmlDocument": { | ||
| "type": "Transitive", | ||
| "resolved": "4.3.0", | ||
| "contentHash": "A/uxsWi/Ifzkmd4ArTLISMbfFs6XpRPsXZonrIqyTY70xi8t+mDtvSM5Os0RqyRDobjMBwIDHDL4NOIbkDwf7A==" | ||
| }, | ||
| "magma.common": { | ||
| "type": "Project" | ||
| } | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| { | ||
| "version": 1, | ||
| "dependencies": { | ||
| "net10.0": { | ||
| "Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions": { | ||
| "type": "Transitive", | ||
| "resolved": "2.1.0-rc1-final", | ||
| "contentHash": "OJ53lhivBAjVmNMWiwB8hiXZ6IW8xKlhkWAG8gHTWruCaH4ofqIK1HjVcFgsf1Olu4/sc2jGGBmMWMSoTb5e1A==" | ||
| }, | ||
| "magma.common": { | ||
| "type": "Project" | ||
| }, | ||
| "magma.internet.ip": { | ||
| "type": "Project", | ||
| "dependencies": { | ||
| "Magma.Common": "[1.0.0, )" | ||
| } | ||
| }, | ||
| "magma.link": { | ||
| "type": "Project" | ||
| }, | ||
| "magma.netmap": { | ||
| "type": "Project", | ||
| "dependencies": { | ||
| "Magma.Common": "[1.0.0, )", | ||
| "Magma.Link": "[1.0.0, )", | ||
| "Magma.Network.Abstractions": "[1.0.0, )", | ||
| "Magma.PCap": "[1.0.0, )", | ||
| "Magma.Transport.Tcp": "[1.0.0, )", | ||
| "Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions": "[2.1.0-rc1-final, )" | ||
| } | ||
| }, | ||
| "magma.network.abstractions": { | ||
| "type": "Project" | ||
| }, | ||
| "magma.pcap": { | ||
| "type": "Project" | ||
| }, | ||
| "magma.transport.tcp": { | ||
| "type": "Project", | ||
| "dependencies": { | ||
| "Magma.Common": "[1.0.0, )", | ||
| "Magma.Internet.Ip": "[1.0.0, )", | ||
| "Magma.Link": "[1.0.0, )", | ||
| "Magma.Network.Abstractions": "[1.0.0, )", | ||
| "Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions": "[2.1.0-rc1-final, )" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,150 @@ | ||
| { | ||
| "version": 1, | ||
| "dependencies": { | ||
| "net10.0": { | ||
| "Microsoft.AspNetCore.Connections.Abstractions": { | ||
| "type": "Transitive", | ||
| "resolved": "2.1.0-rc1-final", | ||
| "contentHash": "1eE+Hml8yITBaNO+5P2f5G8FIN/lX+FOfdw2SrgNLfSlg0inlmSKHqwDz6OzrsK2Pqu4RHWd/v9P6FLfLiaeQA==", | ||
| "dependencies": { | ||
| "Microsoft.AspNetCore.Http.Features": "2.1.0-rc1-final" | ||
| } | ||
| }, | ||
| "Microsoft.AspNetCore.Hosting.Abstractions": { | ||
| "type": "Transitive", | ||
| "resolved": "2.1.0-rc1-final", | ||
| "contentHash": "ZS9+q2D4gDRy9egkX5iOAztWYtOcmMbuPpGh3Vh2ayDgZ0qnOF4n/BYN+kZgCWE+KtLeunAwmXspNj7aHXJYgw==", | ||
| "dependencies": { | ||
| "Microsoft.AspNetCore.Hosting.Server.Abstractions": "2.1.0-rc1-final", | ||
| "Microsoft.AspNetCore.Http.Abstractions": "2.1.0-rc1-final", | ||
| "Microsoft.Extensions.Hosting.Abstractions": "2.1.0-rc1-final" | ||
| } | ||
| }, | ||
| "Microsoft.AspNetCore.Hosting.Server.Abstractions": { | ||
| "type": "Transitive", | ||
| "resolved": "2.1.0-rc1-final", | ||
| "contentHash": "9zEHPWJduVTLanNVRuptCB2zrhY1D7/n6vgdPypmRtq3eR51fgfYyDsalZXQeFNOsKdVaD4PuSEP3DiLed8bYg==", | ||
| "dependencies": { | ||
| "Microsoft.AspNetCore.Http.Features": "2.1.0-rc1-final", | ||
| "Microsoft.Extensions.Configuration.Abstractions": "2.1.0-rc1-final" | ||
| } | ||
| }, | ||
| "Microsoft.AspNetCore.Http.Abstractions": { | ||
| "type": "Transitive", | ||
| "resolved": "2.1.0-rc1-final", | ||
| "contentHash": "k8rteCcVexd8yh5DLi4Vo4UU3vyQpHP43d13jalWixImsHSgvDjkjuOUE8MK9oTlHd9utSsl8Vyeh1v2vABVvg==", | ||
| "dependencies": { | ||
| "Microsoft.AspNetCore.Http.Features": "2.1.0-rc1-final" | ||
| } | ||
| }, | ||
| "Microsoft.AspNetCore.Http.Features": { | ||
| "type": "Transitive", | ||
| "resolved": "2.1.0-rc1-final", | ||
| "contentHash": "BwPSAufLsQjTyeGhm//f+GXhV9s68dJRPGIPy0tH5vPgRiTxMxTOqhi3ReJOR9fYnLkf1zxf/dLEly4INk1+dg==", | ||
| "dependencies": { | ||
| "Microsoft.Extensions.Primitives": "2.1.0-rc1-final" | ||
| } | ||
| }, | ||
| "Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions": { | ||
| "type": "Transitive", | ||
| "resolved": "2.1.0-rc1-final", | ||
| "contentHash": "OJ53lhivBAjVmNMWiwB8hiXZ6IW8xKlhkWAG8gHTWruCaH4ofqIK1HjVcFgsf1Olu4/sc2jGGBmMWMSoTb5e1A==", | ||
| "dependencies": { | ||
| "Microsoft.AspNetCore.Connections.Abstractions": "2.1.0-rc1-final" | ||
| } | ||
| }, | ||
| "Microsoft.Extensions.Configuration.Abstractions": { | ||
| "type": "Transitive", | ||
| "resolved": "2.1.0-rc1-final", | ||
| "contentHash": "U0Q+2iXLHmLrYNl0afYa/Co0J8E/q5E81n3InSa8D8w25OiqOU5ETaOT4/ridVtHTNTcGao34LtMWTnOl/Ly+A==", | ||
| "dependencies": { | ||
| "Microsoft.Extensions.Primitives": "2.1.0-rc1-final" | ||
| } | ||
| }, | ||
| "Microsoft.Extensions.DependencyInjection.Abstractions": { | ||
| "type": "Transitive", | ||
| "resolved": "2.1.0-rc1-final", | ||
| "contentHash": "WDSDj1JvNlBYfGyU+4TwDrN7LhJX15RmTnTeH5nVOvDOpju17vqx39yChgXeEAwm9kVwCXrRvs5RQWGVLd1cuw==" | ||
| }, | ||
| "Microsoft.Extensions.FileProviders.Abstractions": { | ||
| "type": "Transitive", | ||
| "resolved": "2.1.0-rc1-final", | ||
| "contentHash": "o4C2e7UUiwAUtNrF+itJKBKNSVGXEE4i3tCtkK2oLk1/CJ88hnEHU+A299NKpUloMbsXH4Z+29lPUbNsKHoeTw==", | ||
| "dependencies": { | ||
| "Microsoft.Extensions.Primitives": "2.1.0-rc1-final" | ||
| } | ||
| }, | ||
| "Microsoft.Extensions.Hosting.Abstractions": { | ||
| "type": "Transitive", | ||
| "resolved": "2.1.0-rc1-final", | ||
| "contentHash": "G+UwVxCWW8p6aEQy5iPt1gt4H4L+LbXyOGVXMZwOVE03KJpg6IxBFd7VkgEsnVhXsjuGdCV0m/76MnJuTMvs+w==", | ||
| "dependencies": { | ||
| "Microsoft.Extensions.Configuration.Abstractions": "2.1.0-rc1-final", | ||
| "Microsoft.Extensions.DependencyInjection.Abstractions": "2.1.0-rc1-final", | ||
| "Microsoft.Extensions.FileProviders.Abstractions": "2.1.0-rc1-final", | ||
| "Microsoft.Extensions.Logging.Abstractions": "2.1.0-rc1-final" | ||
| } | ||
| }, | ||
| "Microsoft.Extensions.Logging.Abstractions": { | ||
| "type": "Transitive", | ||
| "resolved": "2.1.0-rc1-final", | ||
| "contentHash": "wbv9lUGJPJ+nKMyHWBiImSI99n70nynYW+lKQhUa8fJTr3G2sNUaN12uXh3+riNwnNX+YJldhdo38v8s6N8ZSA==" | ||
| }, | ||
| "Microsoft.Extensions.Options": { | ||
| "type": "Transitive", | ||
| "resolved": "2.1.0-rc1-final", | ||
| "contentHash": "uRkR6l93U/2FVlijdHfdb8NafesLr46dB1RkHtgt8p+lVPy6MspXxvbftEPKFSlT9uT0wWlGw8FEyZSQsex23w==", | ||
| "dependencies": { | ||
| "Microsoft.Extensions.DependencyInjection.Abstractions": "2.1.0-rc1-final", | ||
| "Microsoft.Extensions.Primitives": "2.1.0-rc1-final" | ||
| } | ||
| }, | ||
| "Microsoft.Extensions.Primitives": { | ||
| "type": "Transitive", | ||
| "resolved": "2.1.0-rc1-final", | ||
| "contentHash": "UR92OPDCSSBckjDELE1ZOzioml4jrMTYo2LmP3d+HhY56GeS6gwVwTNTxMb3VL1KXKzkYzdbQSo3xVwN6z9Ogg==" | ||
| }, | ||
| "magma.common": { | ||
| "type": "Project" | ||
| }, | ||
| "magma.internet.ip": { | ||
| "type": "Project", | ||
| "dependencies": { | ||
| "Magma.Common": "[1.0.0, )" | ||
| } | ||
| }, | ||
| "magma.link": { | ||
| "type": "Project" | ||
| }, | ||
| "magma.netmap": { | ||
| "type": "Project", | ||
| "dependencies": { | ||
| "Magma.Common": "[1.0.0, )", | ||
| "Magma.Link": "[1.0.0, )", | ||
| "Magma.Network.Abstractions": "[1.0.0, )", | ||
| "Magma.PCap": "[1.0.0, )", | ||
| "Magma.Transport.Tcp": "[1.0.0, )", | ||
| "Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions": "[2.1.0-rc1-final, )" | ||
| } | ||
| }, | ||
| "magma.network.abstractions": { | ||
| "type": "Project" | ||
| }, | ||
| "magma.pcap": { | ||
| "type": "Project" | ||
| }, | ||
| "magma.transport.tcp": { | ||
| "type": "Project", | ||
| "dependencies": { | ||
| "Magma.Common": "[1.0.0, )", | ||
| "Magma.Internet.Ip": "[1.0.0, )", | ||
| "Magma.Link": "[1.0.0, )", | ||
| "Magma.Network.Abstractions": "[1.0.0, )", | ||
| "Microsoft.AspNetCore.Hosting.Abstractions": "[2.1.0-rc1-final, )", | ||
| "Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions": "[2.1.0-rc1-final, )", | ||
| "Microsoft.Extensions.Options": "[2.1.0-rc1-final, )" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.