Skip to content

Add lightweight passkey identity sample #12

Add lightweight passkey identity sample

Add lightweight passkey identity sample #12

Workflow file for this run

name: Build tutorial samples
on:
push:
branches: [main]
paths:
- "dotnet-ai/provider-agnostic-chat-gateway/**"
- "dotnet-ai/hybrid-search-ef-core-pgvector/**"
- "dotnet-aspire/orchestrate-distributed-system/**"
- "software-architecture/architecture-testing-dotnet/**"
- "distributed-systems/transactional-outbox-ef-core/**"
- "aspnet-core/api-security-in-practice/**"
- "aspnet-core/passkey-first-identity/**"
- ".github/workflows/build-samples.yml"
pull_request:
paths:
- "dotnet-ai/provider-agnostic-chat-gateway/**"
- "dotnet-ai/hybrid-search-ef-core-pgvector/**"
- "dotnet-aspire/orchestrate-distributed-system/**"
- "software-architecture/architecture-testing-dotnet/**"
- "distributed-systems/transactional-outbox-ef-core/**"
- "aspnet-core/api-security-in-practice/**"
- "aspnet-core/passkey-first-identity/**"
- ".github/workflows/build-samples.yml"
workflow_dispatch:
permissions:
contents: read
jobs:
build-chat-gateway:
name: Build provider-agnostic chat gateway
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v5
- name: Install .NET 10 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: "10.0.x"
- name: Restore
run: |
dotnet restore \
dotnet-ai/provider-agnostic-chat-gateway/ChatGatewayMinimal.csproj
- name: Build
run: |
dotnet build \
dotnet-ai/provider-agnostic-chat-gateway/ChatGatewayMinimal.csproj \
--configuration Release \
--no-restore
build-hybrid-search:
name: Build hybrid search RRF sample
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v5
- name: Install .NET 10 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: "10.0.x"
- name: Restore
run: |
dotnet restore \
dotnet-ai/hybrid-search-ef-core-pgvector/HybridSearchMinimal.csproj
- name: Build
run: |
dotnet build \
dotnet-ai/hybrid-search-ef-core-pgvector/HybridSearchMinimal.csproj \
--configuration Release \
--no-restore
- name: Run sample
run: |
dotnet run \
--project dotnet-ai/hybrid-search-ef-core-pgvector/HybridSearchMinimal.csproj \
--configuration Release \
--no-build
build-aspire-orchestration:
name: Build Aspire orchestration sample
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v5
- name: Install .NET 10 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: "10.0.x"
- name: Restore
run: |
dotnet restore \
dotnet-aspire/orchestrate-distributed-system/AspireOrchestrationMinimal.slnx
- name: Build
run: |
dotnet build \
dotnet-aspire/orchestrate-distributed-system/AspireOrchestrationMinimal.slnx \
--configuration Release \
--no-restore
test-architecture-rules:
name: Test architecture rules
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v5
- name: Install .NET 10 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: "10.0.x"
- name: Restore
run: |
dotnet restore \
software-architecture/architecture-testing-dotnet/ArchitectureGuardMinimal.slnx
- name: Build
run: |
dotnet build \
software-architecture/architecture-testing-dotnet/ArchitectureGuardMinimal.slnx \
--configuration Release \
--no-restore
- name: Test architecture rules
run: |
dotnet test \
software-architecture/architecture-testing-dotnet/tests/ArchitectureGuard.ArchitectureTests/ArchitectureGuard.ArchitectureTests.csproj \
--configuration Release \
--no-build
test-transactional-outbox:
name: Test transactional outbox sample
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v5
- name: Install .NET 10 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: "10.0.x"
- name: Restore
run: >
dotnet restore
distributed-systems/transactional-outbox-ef-core/TransactionalOutboxMinimal.slnx
- name: Build
run: >
dotnet build
distributed-systems/transactional-outbox-ef-core/TransactionalOutboxMinimal.slnx
--configuration Release
--no-restore
- name: Test
run: >
dotnet test
distributed-systems/transactional-outbox-ef-core/tests/TransactionalOutboxMinimal.Tests/TransactionalOutboxMinimal.Tests.csproj
--configuration Release
--no-build
- name: Run demonstration
run: >
dotnet run
--project distributed-systems/transactional-outbox-ef-core/src/TransactionalOutboxMinimal/TransactionalOutboxMinimal.csproj
--configuration Release
--no-build
test-api-security:
name: Test API security sample
runs-on: ubuntu-latest
env:
Jwt__Key: "CI-only-test-key-at-least-32-bytes-long"
steps:
- name: Check out repository
uses: actions/checkout@v5
- name: Install .NET 10 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: "10.0.x"
- name: Restore
run: >
dotnet restore
aspnet-core/api-security-in-practice/ApiSecurityMinimal.slnx
- name: Build
run: >
dotnet build
aspnet-core/api-security-in-practice/ApiSecurityMinimal.slnx
--configuration Release
--no-restore
- name: Test API security
run: >
dotnet test
aspnet-core/api-security-in-practice/tests/ApiSecurityMinimal.Tests/ApiSecurityMinimal.Tests.csproj
--configuration Release
--no-build
test-passkey-identity:
name: Test passkey identity sample
runs-on: ubuntu-latest
env:
ASPNETCORE_ENVIRONMENT: Testing
Passkeys__ServerDomain: localhost
steps:
- name: Check out repository
uses: actions/checkout@v5
- name: Install .NET 10 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: "10.0.x"
- name: Restore
run: >
dotnet restore
aspnet-core/passkey-first-identity/PasskeyIdentityMinimal.slnx
- name: Build
run: >
dotnet build
aspnet-core/passkey-first-identity/PasskeyIdentityMinimal.slnx
--configuration Release
--no-restore
- name: Test server-side passkey boundaries
run: >
dotnet test
aspnet-core/passkey-first-identity/tests/PasskeyIdentityMinimal.Tests/PasskeyIdentityMinimal.Tests.csproj
--configuration Release
--no-build