Skip to content

Commit 277838e

Browse files
Create Copilot setup workflow with Node.js and .NET environment
Co-authored-by: BenjaminMichaelis <22186029+BenjaminMichaelis@users.noreply.github.com>
1 parent d118227 commit 277838e

3 files changed

Lines changed: 78 additions & 0 deletions

File tree

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Copilot Setup Steps
2+
3+
on:
4+
push:
5+
paths:
6+
- '.github/workflows/copilot-setup-steps.yml'
7+
pull_request:
8+
paths:
9+
- '.github/workflows/copilot-setup-steps.yml'
10+
workflow_dispatch:
11+
12+
defaults:
13+
run:
14+
shell: pwsh
15+
16+
jobs:
17+
copilot-setup-steps:
18+
name: copilot-setup-steps
19+
runs-on: ubuntu-latest
20+
21+
permissions:
22+
contents: read
23+
24+
steps:
25+
- name: Checkout code
26+
uses: actions/checkout@v5
27+
28+
- name: Setup Node.js
29+
uses: actions/setup-node@v4
30+
with:
31+
node-version: '20'
32+
cache: 'npm'
33+
34+
- name: Install JavaScript dependencies
35+
run: npm ci
36+
37+
- name: Setup .NET
38+
uses: actions/setup-dotnet@v4
39+
with:
40+
dotnet-version: |
41+
3.1.x
42+
6.x
43+
44+
- name: Restore .NET dependencies
45+
run: dotnet restore
46+
47+
- name: Setup Copilot environment
48+
run: |
49+
echo "Setting up Copilot-specific environment variables..."
50+
echo "COPILOT_SETUP_COMPLETE=true" >> $env:GITHUB_ENV
51+
echo "Copilot environment setup completed"

package-lock.json

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "testtools-console-copilot",
3+
"version": "1.0.0",
4+
"description": "JavaScript dependencies for GitHub Copilot environment setup",
5+
"private": true,
6+
"scripts": {},
7+
"devDependencies": {},
8+
"engines": {
9+
"node": ">=20.0.0"
10+
}
11+
}

0 commit comments

Comments
 (0)