-
Notifications
You must be signed in to change notification settings - Fork 814
50 lines (40 loc) · 1.53 KB
/
copilot-setup-steps.yml
File metadata and controls
50 lines (40 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: "Copilot Setup Steps"
# Allow testing of the setup steps from your repository's "Actions" tab.
on: workflow_dispatch
jobs:
# The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot.
copilot-setup-steps:
runs-on: ${{ github.repository_owner == 'dotnet' && '8-core-ubuntu-latest' || 'ubuntu-latest' }}
permissions:
contents: read
# You can define any steps you want, and they will run before the agent starts.
# If you do not check out your code, Copilot will do this for you.
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Build solution
# a full build is too slow; also do not fail on errors, continue so that
# copilot can attempt to recover
run: ./build.sh -restore || true
# Install verify tool for snapshot testing
- name: Install verify tool
run: ./dotnet.sh tool install --global Verify.Tool --version 0.6.0 || true
- name: Setup PATH
run:
echo "$HOME/.dotnet/tools" >> $GITHUB_PATH
echo "$PWD/.dotnet/" >> $GITHUB_PATH
# For MCP servers like nuget's
- name: Install .NET 10.x
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
10.x
dotnet-quality: preview
# for MCP servers
- name: Install .NET 8.x
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.x
# Diagnostics in the log
- name: dotnet --info
run: dotnet --info