Skip to content

Commit fcd4dc9

Browse files
Create copilot-setup-steps workflow with Node.js and .NET environment setup
Co-authored-by: BenjaminMichaelis <[email protected]>
1 parent 1741863 commit fcd4dc9

File tree

3 files changed

+75
-0
lines changed

3 files changed

+75
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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+
jobs:
13+
copilot-setup-steps:
14+
name: copilot-setup-steps
15+
runs-on: ubuntu-latest
16+
17+
permissions:
18+
contents: read
19+
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v5
23+
24+
- name: Setup Node.js
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: '20'
28+
cache: 'npm'
29+
30+
- name: Install JavaScript dependencies
31+
run: npm ci
32+
33+
- name: Setup dotnet SDK
34+
uses: actions/setup-dotnet@v5
35+
with:
36+
global-json-file: global.json
37+
38+
- name: Set up dependency caching for faster builds
39+
uses: actions/cache@v4
40+
id: nuget-cache
41+
with:
42+
path: |
43+
~/.nuget/packages
44+
${{ github.workspace }}/**/obj/project.assets.json
45+
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
46+
restore-keys: |
47+
${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
48+
${{ runner.os }}-nuget-

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": "essential-csharp",
3+
"version": "1.0.0",
4+
"description": "Essential C# - A comprehensive guide to C# programming",
5+
"private": true,
6+
"scripts": {},
7+
"devDependencies": {},
8+
"engines": {
9+
"node": ">=20.0.0"
10+
}
11+
}

0 commit comments

Comments
 (0)