Skip to content

Commit dd4f90a

Browse files
committed
Updates build and CI configurations
Refactors the build process by upgrading various dependencies and tools, including actions/checkout, actions/setup-node, AsyncFixer, and MinVer. Adds a new workflow for Copilot setup and includes support for .NET versions 9.0 and 10.0 in the CodeQL analysis. Updates copyright to current year.
1 parent 189e4f6 commit dd4f90a

File tree

9 files changed

+53
-90
lines changed

9 files changed

+53
-90
lines changed

.github/setup-cursor-rules.ps1

Lines changed: 0 additions & 62 deletions
This file was deleted.

.github/workflows/build-workflow.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434

3535
steps:
3636
- name: Checkout
37-
uses: actions/checkout@v5
37+
uses: actions/checkout@v6
3838
with:
3939
fetch-depth: 0
4040
- name: Setup .NET Core
@@ -60,14 +60,14 @@ jobs:
6060
echo branch: $branch ref: $GITHUB_REF event: $GITHUB_EVENT_NAME actor: $GITHUB_ACTOR
6161
- name: Build Version
6262
run: |
63-
dotnet tool install --global minver-cli --version 6.0.0
63+
dotnet tool install --global minver-cli --version 6.1.0
6464
version=$(minver --tag-prefix v --default-pre-release-identifiers preview.${GIT_BRANCH_SUFFIX}0)
65-
65+
6666
# If on a non-main branch, insert branch name into version
6767
if [ -n "$GIT_BRANCH_SUFFIX" ]; then
6868
version=$(echo "$version" | sed -E "s/^([0-9]+\.[0-9]+\.[0-9]+-[^.]+\.[^.]+)\./\1.${GIT_BRANCH_SUFFIX}/")
6969
fi
70-
70+
7171
echo "MINVERVERSIONOVERRIDE=$version" >> $GITHUB_ENV
7272
echo "### Version: $version" >> $GITHUB_STEP_SUMMARY
7373
- name: Set Default Solution

.github/workflows/codeql-analysis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
steps:
1313
- name: Checkout repository
14-
uses: actions/checkout@v5
14+
uses: actions/checkout@v6
1515
with:
1616
# We must fetch at least the immediate parents so that if this is
1717
# a pull request then we can checkout the head.
@@ -30,7 +30,10 @@ jobs:
3030
- name: Setup .NET Core
3131
uses: actions/setup-dotnet@v5
3232
with:
33-
dotnet-version: 8.0.x
33+
dotnet-version: |
34+
8.0.x
35+
9.0.x
36+
10.0.x
3437
3538
- name: Build
3639
run: dotnet build Foundatio.slnx --configuration Release
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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 code
21+
uses: actions/checkout@v6
22+
23+
- name: Setup .NET Core
24+
uses: actions/setup-dotnet@v5
25+
with:
26+
dotnet-version: |
27+
8.0.x
28+
9.0.x
29+
10.0.x

.github/workflows/docs.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ jobs:
1717
url: ${{ steps.deployment.outputs.page_url }}
1818
steps:
1919
- name: Checkout
20-
uses: actions/checkout@v4
20+
uses: actions/checkout@v6
2121
with:
2222
fetch-depth: 0
2323

2424
- name: Setup Node.js
25-
uses: actions/setup-node@v4
25+
uses: actions/setup-node@v6
2626
with:
27-
node-version: 22
27+
node-version: 24
2828

2929
- name: Clean npm cache and dependencies
3030
run: |
@@ -41,10 +41,10 @@ jobs:
4141
working-directory: docs
4242

4343
- name: Setup Pages
44-
uses: actions/configure-pages@v4
44+
uses: actions/configure-pages@v5
4545

4646
- name: Upload artifact
47-
uses: actions/upload-pages-artifact@v3
47+
uses: actions/upload-pages-artifact@v4
4848
with:
4949
path: docs/.vitepress/dist
5050

.vscode/tasks.json

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,6 @@
5454
"panel": "dedicated"
5555
},
5656
"problemMatcher": []
57-
},
58-
{
59-
"label": "setup cursor rules",
60-
"command": "pwsh",
61-
"args": [
62-
".github/setup-cursor-rules.ps1"
63-
],
64-
"type": "shell",
65-
"group": "build",
66-
"presentation": {
67-
"panel": "dedicated"
68-
},
69-
"problemMatcher": []
7057
}
7158
]
7259
}

Foundatio.All.code-workspace

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@
3838
},
3939
{
4040
"path": "../Foundatio.Mediator"
41+
},
42+
{
43+
"path": "../Foundatio.CommandQuery"
44+
},
45+
{
46+
"path": "../Foundatio.Lucene"
4147
}
4248
],
4349
"settings": {

build/common.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<MinVerSkip Condition="'$(Configuration)' == 'Debug'">true</MinVerSkip>
1111
<MinVerTagPrefix>v</MinVerTagPrefix>
1212

13-
<Copyright>Copyright (c) 2025 Foundatio. All rights reserved.</Copyright>
13+
<Copyright>Copyright © $([System.DateTime]::Now.ToString(yyyy)) Foundatio. All rights reserved.</Copyright>
1414
<Authors>FoundatioFx</Authors>
1515
<NoWarn>$(NoWarn);CS1591;</NoWarn>
1616
<WarningsAsErrors>true</WarningsAsErrors>
@@ -37,8 +37,8 @@
3737

3838
<ItemGroup>
3939
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
40-
<PackageReference Include="AsyncFixer" Version="1.6.0" PrivateAssets="All" />
41-
<PackageReference Include="MinVer" Version="6.0.0" PrivateAssets="All" />
40+
<PackageReference Include="AsyncFixer" Version="2.1.0" PrivateAssets="All" />
41+
<PackageReference Include="MinVer" Version="6.1.0" PrivateAssets="All" />
4242
</ItemGroup>
4343

4444
<ItemGroup>

src/Foundatio.TestHarness/Foundatio.TestHarness.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<IsTestProject>false</IsTestProject>
66
</PropertyGroup>
77
<ItemGroup>
8-
<PackageReference Include="BenchmarkDotNet" Version="0.15.6" />
8+
<PackageReference Include="BenchmarkDotNet" Version="0.15.8" />
99
<PackageReference Include="Exceptionless.RandomData" Version="1.2.2" />
1010
<PackageReference Include="Microsoft.Extensions.TimeProvider.Testing" Version="8.10.0" />
1111
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="8.0" />

0 commit comments

Comments
 (0)