Skip to content

Commit 67d66ea

Browse files
Merge pull request #1 from magiccodingman/agent/build-magicsettings-runtime
Build the MagicSettings configuration runtime
2 parents 108b05f + 76e3501 commit 67d66ea

36 files changed

Lines changed: 5564 additions & 99 deletions

.github/workflows/ci.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
build-and-test:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-dotnet@v4
18+
with:
19+
dotnet-version: 10.0.x
20+
- name: Restore
21+
working-directory: MagicSettings
22+
run: dotnet restore MagicSettings.sln
23+
- name: Build
24+
id: build
25+
working-directory: MagicSettings
26+
shell: bash
27+
run: |
28+
set +e
29+
dotnet build MagicSettings.sln --configuration Release --no-restore --consoleLoggerParameters:ErrorsOnly > ../build.log 2>&1
30+
exit_code=$?
31+
grep -E "(^|[[:space:]])(error|warning) (CS|NU|NETSDK|MSB)[0-9]+|Build FAILED|Build succeeded" ../build.log > ../build-summary.log || true
32+
cat ../build-summary.log
33+
exit $exit_code
34+
- name: Upload build diagnostics
35+
if: always()
36+
uses: actions/upload-artifact@v4
37+
with:
38+
name: build-diagnostics
39+
path: |
40+
build.log
41+
build-summary.log
42+
if-no-files-found: error
43+
- name: Test
44+
working-directory: MagicSettings
45+
run: dotnet test MagicSettings.sln --configuration Release --no-build --logger "console;verbosity=normal"

.gitignore

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,17 @@
1-
## Build output
21
[Bb]in/
32
[Oo]bj/
43
artifacts/
5-
*.user
6-
*.suo
4+
TestResults/
5+
coverage/
76
.idea/
87
.vs/
9-
10-
## Runtime state and secrets
11-
**/.magic-ai/
12-
**/state/
8+
*.user
9+
*.suo
1310
*.pfx
1411
*.pem
1512
*.key
1613
*.password
17-
appsettings.Local.json
1814
.env
19-
20-
## Test output
21-
TestResults/
22-
coverage/
15+
**/.magicsettings.identity.json
16+
**/.magicsettings.identity.json.*
17+
appsettings.Local.json
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<Project>
2+
<PropertyGroup>
3+
<TargetFramework>net10.0</TargetFramework>
4+
<LangVersion>latest</LangVersion>
5+
<ImplicitUsings>enable</ImplicitUsings>
6+
<Nullable>enable</Nullable>
7+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
8+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
9+
<NoWarn>$(NoWarn);1591</NoWarn>
10+
<Deterministic>true</Deterministic>
11+
</PropertyGroup>
12+
</Project>
Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
2-
3-
<PropertyGroup>
4-
<TargetFramework>net10.0</TargetFramework>
5-
<ImplicitUsings>enable</ImplicitUsings>
6-
<Nullable>enable</Nullable>
7-
</PropertyGroup>
8-
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<PackageId>MagicSettings.Server</PackageId>
4+
<Description>Storage-agnostic server helpers for MagicSettings enrollment, synchronization, authorization, and proof verification.</Description>
5+
</PropertyGroup>
6+
<ItemGroup>
7+
<ProjectReference Include="../MagicSettings.Share/MagicSettings.Share.csproj" />
8+
<FrameworkReference Include="Microsoft.AspNetCore.App" />
9+
</ItemGroup>
910
</Project>

0 commit comments

Comments
 (0)