Skip to content

Copilot Setup Steps

Copilot Setup Steps #6

#
# This workflow is used to set up the environment for GitHub Copilot.
#
name: Copilot Setup Steps
# Automatically run the setup steps when they are changed to allow for easy validation, and
# allow manual testing through the repository's "Actions" tab
on:
workflow_dispatch: {}
push:
paths:
- .github/workflows/copilot-setup-steps.yml
pull_request:
paths:
- .github/workflows/copilot-setup-steps.yml
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
steps:
- name: Checkout
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d # v5.0.0
with:
global-json-file: global.json
- name: Install dependencies
shell: pwsh
timeout-minutes: 5
run: |
dotnet restore;
./scripts/pipeline-deps.ps1;
Import-Module ./scripts/dependencies.psm1 -Force;
Install-Dependencies -Dev;