Skip to content

Commit c58cacb

Browse files
committed
Add Copilot setup steps workflow
Adds a dedicated GitHub Actions workflow to provide environment context for GitHub Copilot. It installs the required .NET SDK versions (8.x, 9.x, and 10.x) and restores dependencies to ensure Copilot has a valid build state for the toolkit.
1 parent e1232ea commit c58cacb

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: "Copilot Setup Steps"
2+
3+
# Automatically run the setup steps when they are changed to allow for easy validation, and
4+
# allow manual testing through the repository's "Actions" tab
5+
on:
6+
workflow_dispatch:
7+
push:
8+
paths:
9+
- .github/workflows/copilot-setup-steps.yml
10+
pull_request:
11+
paths:
12+
- .github/workflows/copilot-setup-steps.yml
13+
14+
defaults:
15+
run:
16+
shell: pwsh
17+
18+
jobs:
19+
# The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot.
20+
copilot-setup-steps:
21+
runs-on: windows-latest
22+
23+
permissions:
24+
contents: read
25+
26+
steps:
27+
- name: Checkout code
28+
uses: actions/checkout@v6
29+
30+
- name: Setup .NET
31+
uses: actions/setup-dotnet@v5
32+
with:
33+
dotnet-version: |
34+
8.x
35+
9.x
36+
10.x
37+
38+
- name: Restore dependencies
39+
run: dotnet restore MaterialDesignToolkit.Full.slnx

0 commit comments

Comments
 (0)