-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (26 loc) · 1023 Bytes
/
copilot-setup-steps.yml
File metadata and controls
34 lines (26 loc) · 1023 Bytes
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
name: Copilot coding agent setup
# This workflow defines the environment setup steps for the GitHub Copilot
# coding agent. When you assign an issue to @copilot, this workflow runs
# first to prepare the workspace before the agent starts implementing.
#
# See: https://docs.github.com/en/copilot/how-to-use-github-copilot/using-copilot-coding-agent
on:
workflow_dispatch:
jobs:
copilot-setup-steps:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: Restore NuGet packages
run: dotnet restore ServiceTemplate.sln
- name: Install dotnet tools
run: dotnet tool restore
- name: Build solution
run: dotnet build ServiceTemplate.sln -c Release --no-restore
- name: Verify unit tests pass
run: dotnet test tests/UnitTests/ServiceTemplate.UnitTests.csproj --no-build -c Release