|
| 1 | +# GitHub Copilot setup steps for the C# VS Code extension |
| 2 | +# This file configures the environment for the GitHub Copilot coding agent |
| 3 | + |
| 4 | +name: "Copilot Setup Steps" |
| 5 | + |
| 6 | +# Automatically run the setup steps when they are changed to allow for easy validation, and |
| 7 | +# allow manual testing through the repository's "Actions" tab |
| 8 | +on: |
| 9 | + workflow_dispatch: |
| 10 | + push: |
| 11 | + paths: |
| 12 | + - .github/workflows/copilot-setup-steps.yml |
| 13 | + pull_request: |
| 14 | + paths: |
| 15 | + - .github/workflows/copilot-setup-steps.yml |
| 16 | + |
| 17 | +jobs: |
| 18 | + # The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot. |
| 19 | + copilot-setup-steps: |
| 20 | + runs-on: ubuntu-latest |
| 21 | + permissions: |
| 22 | + contents: read # Read access to the repository contents (required for checkout) |
| 23 | + |
| 24 | + steps: |
| 25 | + - name: Checkout code |
| 26 | + uses: actions/checkout@v5 |
| 27 | + |
| 28 | + # Install Node.js (required for TypeScript compilation and npm packages) |
| 29 | + - uses: actions/setup-node@v4 |
| 30 | + with: |
| 31 | + node-version: '20' |
| 32 | + cache: 'npm' |
| 33 | + |
| 34 | + # Install .NET SDK (required for some build components and MSBuild tasks) |
| 35 | + - uses: actions/setup-dotnet@v4 |
| 36 | + with: |
| 37 | + dotnet-version: '8.0.x' |
| 38 | + |
| 39 | + # Install npm dependencies |
| 40 | + - name: Install dependencies |
| 41 | + run: npm ci |
| 42 | + |
| 43 | + # Install gulp globally (required for build tasks) |
| 44 | + - name: Install gulp |
| 45 | + run: npm install -g gulp |
| 46 | + |
| 47 | + # Install vsce (needed for packaging tasks) |
| 48 | + - name: Install vsce |
| 49 | + run: npm install -g vsce |
| 50 | + |
| 51 | + # Install server dependencies (needed for integration tests and running) |
| 52 | + - name: Install dependencies |
| 53 | + run: gulp installDependencies |
| 54 | + |
| 55 | + |
0 commit comments