Repository navigation
ci: run tests on workflow PRs and configure Dependabot - #6
Merged
Merged
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Pull requests that only edit
.github/files currently skip theRun Testsworkflow (paths-ignoreexcluded.github/**, andSetup .NETwas gated onDotnetApp/changes viatj-actions/changed-files). This also left the demo repository out of sync with the updated Unit 9 GitHub Actions lecture slide (hackbrightacademy/csharp-curriculum#613) and unprepared for the Dependabot PR walkthrough (hackbrightacademy/csharp-curriculum#594).This PR updates
Run Testsso pull requests touching eitherDotnetApp/or.github/reliably install.NET 8and run the test suite, pins the.NET 8SDK inDotnetApp/global.jsonsoubuntu-latest(ubuntu-26.04) does not silently roll forward to.NET 11, and adds Dependabot version update configuration for NuGet and GitHub Actions.Changes
.github/PRs and match the lecture slide: Removed.github/**frompaths-ignore(keeping'README.md'), removed thetj-actions/changed-filesstep andif:condition onSetup .NET, and updatedactions/setup-dotnet@v3toactions/setup-dotnet@v4withdotnet-version: 8.0.x(matchingDotnetApp'snet8.0target framework)..NET 8SDK forDotnetApp: AddedDotnetApp/global.json(8.0.0,rollForward: "latestFeature"). Withoutglobal.json,ubuntu-latest(ubuntu-26.04, which preinstalls.NET SDK 11.0.100) rolled forward past8.0.428and failed buildingPettingZooApi.Tests.csprojon a.NET 11StaticWebAssetserror (Microsoft.NET.Sdk.BlazorWeb.HotReload)..github/dependabot.ymlwith weekly scheduled version updates fornuget(/DotnetApp) andgithub-actions(/), each capped atopen-pull-requests-limit: 5to keep the demo repository tidy for classroom walkthroughs.Validation
.github/workflows/build-and-test.ymland.github/dependabot.ymlwith RubyYAML.safe_load, andDotnetApp/global.jsonwith RubyJSON.parse— all valid..github/workflows/build-and-test.ymlwithactionlint@1.7.12+shellcheck@0.11.0— 0 errors, 0 warnings.a3c36dd) that a.github/-only PR now triggersRun Tests, and pinnedDotnetApp/global.json(0c60103) so CI runs with the8.0.xSDK installed byactions/setup-dotnet@v4.dotnet testwas not run because the local environment has.NET 9/10SDKs (nonet8.0runtime) and no pre-restoredobj/assets; GitHub Actions on this PR verifiesdotnet restore,dotnet build --no-restore, anddotnet test --no-build.After merging
.github/dependabot.ymlis onmain(you can also trigger an immediate check under Insights → Dependency graph → Dependabot rather than waiting for the weekly schedule)./DotnetAppand GitHub Actions (actions/checkout@v4,actions/setup-dotnet@v4) in.github/workflows/, and both types of PRs will triggerRun Tests.security_and_analysis.dependabot_security_updates: disabled); enable them under Settings → Code security if you also want security alerts/PRs visible during the lecture.