Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

permissions:
contents: read

jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: 10.0.x
- name: Restore
working-directory: MagicSettings
run: dotnet restore MagicSettings.sln
- name: Build
id: build
working-directory: MagicSettings
shell: bash
run: |
set +e
dotnet build MagicSettings.sln --configuration Release --no-restore --consoleLoggerParameters:ErrorsOnly > ../build.log 2>&1
exit_code=$?
grep -E "(^|[[:space:]])(error|warning) (CS|NU|NETSDK|MSB)[0-9]+|Build FAILED|Build succeeded" ../build.log > ../build-summary.log || true
cat ../build-summary.log
exit $exit_code
- name: Upload build diagnostics
if: always()
uses: actions/upload-artifact@v4
with:
name: build-diagnostics
path: |
build.log
build-summary.log
if-no-files-found: error
- name: Test
working-directory: MagicSettings
run: dotnet test MagicSettings.sln --configuration Release --no-build --logger "console;verbosity=normal"
19 changes: 7 additions & 12 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
## Build output
[Bb]in/
[Oo]bj/
artifacts/
*.user
*.suo
TestResults/
coverage/
.idea/
.vs/

## Runtime state and secrets
**/.magic-ai/
**/state/
*.user
*.suo
*.pfx
*.pem
*.key
*.password
appsettings.Local.json
.env

## Test output
TestResults/
coverage/
**/.magicsettings.identity.json
**/.magicsettings.identity.json.*
appsettings.Local.json
12 changes: 12 additions & 0 deletions MagicSettings/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<Project>
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<LangVersion>latest</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>$(NoWarn);1591</NoWarn>
<Deterministic>true</Deterministic>
</PropertyGroup>
</Project>
17 changes: 9 additions & 8 deletions MagicSettings/MagicSettings.Server/MagicSettings.Server.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<PackageId>MagicSettings.Server</PackageId>
<Description>Storage-agnostic server helpers for MagicSettings enrollment, synchronization, authorization, and proof verification.</Description>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="../MagicSettings.Share/MagicSettings.Share.csproj" />
<FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>
</Project>
Loading
Loading