Skip to content

Commit 59fe164

Browse files
committed
Updates GitHub Actions versions
Updates the `actions/checkout`, `actions/setup-dotnet`, and `actions/setup-node` GitHub Actions to their v5 versions in multiple workflow files. Adds a new workflow file, `copilot-setup-steps.yml`, to define copilot setup steps, including checkout, .NET setup, service starting, NuGet restore, Node.js setup, and npm package installation. Removes the existing `.vscode/mcp.json` file and adds a new one with updated server configurations, including entries for chrome-devtools, context7, ESLint, microsoft-docs, and playwright.
1 parent 8746992 commit 59fe164

File tree

6 files changed

+94
-17
lines changed

6 files changed

+94
-17
lines changed

.github/workflows/build-arm64.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ jobs:
1919
runs-on: ubuntu-24.04-arm
2020
steps:
2121
- name: Checkout
22-
uses: actions/checkout@v4
22+
uses: actions/checkout@v5
2323
with:
2424
fetch-depth: 0
2525
- name: Setup .NET Core
26-
uses: actions/setup-dotnet@v4
26+
uses: actions/setup-dotnet@v5
2727
with:
2828
dotnet-version: 9.0.*
2929
dotnet-quality: ga

.github/workflows/build.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626

2727
steps:
2828
- name: Checkout
29-
uses: actions/checkout@v4
29+
uses: actions/checkout@v5
3030
with:
3131
fetch-depth: 0
3232

@@ -36,7 +36,7 @@ jobs:
3636
run: "echo ref: ${{github.ref}} event: ${{github.event_name}}"
3737

3838
- name: Setup .NET Core
39-
uses: actions/setup-dotnet@v4
39+
uses: actions/setup-dotnet@v5
4040
with:
4141
dotnet-version: 9.0.*
4242
dotnet-quality: ga
@@ -55,12 +55,12 @@ jobs:
5555

5656
steps:
5757
- name: Checkout
58-
uses: actions/checkout@v4
58+
uses: actions/checkout@v5
5959
with:
6060
fetch-depth: 0
6161

6262
- name: Setup .NET Core
63-
uses: actions/setup-dotnet@v4
63+
uses: actions/setup-dotnet@v5
6464
with:
6565
dotnet-version: 9.0.*
6666
dotnet-quality: ga
@@ -119,12 +119,12 @@ jobs:
119119

120120
steps:
121121
- name: Checkout
122-
uses: actions/checkout@v4
122+
uses: actions/checkout@v5
123123
with:
124124
fetch-depth: 0
125125

126126
- name: Setup Node.js environment
127-
uses: actions/setup-node@v4
127+
uses: actions/setup-node@v5
128128
with:
129129
node-version: 22
130130

@@ -163,7 +163,7 @@ jobs:
163163

164164
steps:
165165
- name: Checkout
166-
uses: actions/checkout@v4
166+
uses: actions/checkout@v5
167167
with:
168168
fetch-depth: 0
169169

@@ -261,7 +261,7 @@ jobs:
261261

262262
steps:
263263
- name: Checkout
264-
uses: actions/checkout@v4
264+
uses: actions/checkout@v5
265265
with:
266266
fetch-depth: 0
267267

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: "Copilot Setup"
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
paths:
7+
- .github/workflows/copilot-setup-steps.yml
8+
pull_request:
9+
paths:
10+
- .github/workflows/copilot-setup-steps.yml
11+
12+
jobs:
13+
copilot-setup-steps:
14+
runs-on: ubuntu-latest
15+
16+
permissions:
17+
contents: read
18+
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v5
22+
with:
23+
fetch-depth: 0
24+
25+
- name: Setup .NET Core
26+
uses: actions/setup-dotnet@v5
27+
with:
28+
dotnet-version: 9.0.*
29+
dotnet-quality: ga
30+
31+
- name: Start Services
32+
working-directory: docker
33+
run: docker compose up -d elasticsearch &
34+
35+
- uses: actions/cache@v4
36+
with:
37+
path: ~/.nuget/packages
38+
key: nuget-${{ runner.os }}-${{ hashFiles('**/packages.lock.json') }}
39+
restore-keys: |
40+
nuget-${{ runner.os }}-
41+
42+
- name: Nuget Restore
43+
run: dotnet restore
44+
45+
- name: Setup Node.js environment
46+
uses: actions/setup-node@v5
47+
with:
48+
node-version: 22
49+
50+
- name: Cache node_modules
51+
uses: actions/cache@v4
52+
id: cache-node-modules
53+
with:
54+
path: src/Exceptionless.Web/ClientApp/node_modules
55+
key: node-modules-${{ hashFiles('src/Exceptionless.Web/ClientApp/package-lock.json') }}
56+
57+
- name: Install Npm Packages
58+
if: steps.cache-node-modules.outputs.cache-hit != 'true'
59+
working-directory: src/Exceptionless.Web/ClientApp
60+
run: npm ci

.github/workflows/elasticsearch-docker-7.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ jobs:
1414
if: startsWith(github.ref, 'refs/tags/v') != true
1515

1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v5
1818
- name: Setup .NET Core
19-
uses: actions/setup-dotnet@v4
19+
uses: actions/setup-dotnet@v5
2020
with:
2121
dotnet-version: 9.0.*
2222
dotnet-quality: ga

.github/workflows/elasticsearch-docker-8.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ jobs:
1414
if: startsWith(github.ref, 'refs/tags/v') != true
1515

1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v5
1818
- name: Setup .NET Core
19-
uses: actions/setup-dotnet@v4
19+
uses: actions/setup-dotnet@v5
2020
with:
2121
dotnet-version: 9.0.*
2222
dotnet-quality: ga

.vscode/mcp.json

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,29 @@
11
{
22
"servers": {
3+
4+
"chrome-devtools": {
5+
"command": "npx",
6+
"args": [
7+
"chrome-devtools-mcp@latest"
8+
]
9+
},
10+
"context7": {
11+
"url": "https://mcp.context7.com/mcp",
12+
},
313
"ESLint": {
414
"type": "stdio",
515
"command": "npx",
616
"args": ["eslint", "--mcp"]
717
},
8-
"context7": {
9-
"url": "https://mcp.context7.com/mcp"
10-
}
18+
"microsoft-docs": {
19+
"url": "https://learn.microsoft.com/api/mcp"
20+
},
21+
"playwright": {
22+
"command": "npx",
23+
"args": [
24+
"@playwright/mcp@latest"
25+
],
26+
"type": "stdio"
27+
}
1128
}
1229
}

0 commit comments

Comments
 (0)