-
Notifications
You must be signed in to change notification settings - Fork 852
32 lines (28 loc) · 1.04 KB
/
copilot-setup-steps.yml
File metadata and controls
32 lines (28 loc) · 1.04 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
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: 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
- uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: Restore the compiler service solution
env:
CI: false
run: ./build.sh -c Release --verbosity quiet || true
- name: Restore the language server solution
env:
CI: false
run: dotnet build ./LSPSolutionSlim.sln -c Release --verbosity quiet || true
- name: Restore dotnet tools
env:
CI: false
run: dotnet tool restore