-
Notifications
You must be signed in to change notification settings - Fork 171
Add GitHub Actions workflow for Copilot environment setup and consolidate .NET setup across all workflows #830
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
BenjaminMichaelis
merged 10 commits into
v12.0
from
copilot/fix-11d16f53-d3c4-4ff7-8b5a-30c6a14c15bb
Sep 20, 2025
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
1741863
Initial plan
Copilot fcd4dc9
Create copilot-setup-steps workflow with Node.js and .NET environment…
Copilot b098362
Remove unnecessary Node.js setup and create reusable .NET setup action
Copilot 49acef2
Enhance .NET setup action with build/restore and update all workflows…
Copilot 236ed97
Update action.yml
BenjaminMichaelis aec82a6
Update Code-Analysis.yml
BenjaminMichaelis 5b2bb6f
Update build-and-test.yml
BenjaminMichaelis f1dafe2
Update Code-Analysis.yml
BenjaminMichaelis 0234ca5
Update build-and-test.yml
BenjaminMichaelis 99ad5d7
Update action.yml
BenjaminMichaelis 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,38 @@ | ||
| name: 'Setup .NET Environment' | ||
| description: 'Set up .NET SDK, configure dependency caching, restore, and optionally build' | ||
| inputs: | ||
| build: | ||
| description: 'Whether to run dotnet build after restore' | ||
| required: false | ||
| default: 'true' | ||
| runs: | ||
| using: 'composite' | ||
| steps: | ||
| - name: Setup dotnet SDK | ||
| uses: actions/setup-dotnet@v5 | ||
| with: | ||
| dotnet-version: | | ||
| 6.0.x | ||
| 7.0.x | ||
| 8.0.x | ||
|
|
||
| - name: Set up dependency caching for faster builds | ||
| uses: actions/cache@v4 | ||
| id: nuget-cache | ||
| with: | ||
| path: | | ||
| ~/.nuget/packages | ||
| ${{ github.workspace }}/**/obj/project.assets.json | ||
| key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | ||
| ${{ runner.os }}-nuget- | ||
|
|
||
| - name: Restore dependencies | ||
| shell: bash | ||
| run: dotnet restore | ||
|
|
||
| - name: Build | ||
| if: ${{ inputs.build == 'true' }} | ||
| shell: bash | ||
| run: dotnet build --no-restore |
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
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,25 @@ | ||
| name: Copilot Setup Steps | ||
|
|
||
| on: | ||
| push: | ||
| paths: | ||
| - '.github/workflows/copilot-setup-steps.yml' | ||
| pull_request: | ||
| paths: | ||
| - '.github/workflows/copilot-setup-steps.yml' | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| copilot-setup-steps: | ||
| name: copilot-setup-steps | ||
| runs-on: ubuntu-latest | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v5 | ||
|
|
||
| - name: Setup .NET environment | ||
| uses: ./.github/actions/setup-dotnet |
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.