Skip to content

Resolved #20: Incorrect DeletePlatformCredential signature #92

Resolved #20: Incorrect DeletePlatformCredential signature

Resolved #20: Incorrect DeletePlatformCredential signature #92

Workflow file for this run

name: 'Build and Test'
on:
push:
branches:
- main
paths:
- 'Src/**'
- '.github/workflows/autobuild.yml'
jobs:
build:
name: 'Build'
runs-on: windows-latest
timeout-minutes: 10
permissions:
contents: read
issues: read
checks: write
pull-requests: write
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
cache: true
cache-dependency-path: 'Src/*/packages.lock.json'
- name: Restore NuGet Packages
working-directory: Src
run: dotnet restore --locked-mode
- name: Build Binaries
working-directory: Src
run: |
dotnet build --configuration Release --no-restore
dotnet build --configuration Debug --no-restore
- name: Upload Desktop App as Artifact
uses: actions/upload-artifact@v4
with:
name: Fido2UI
path: Build/bin/Fido2UI/release/*
- name: Build PowerShell Module
working-directory: Scripts
shell: powershell
run: .\Build-PowerShellModule.ps1 -Configuration Release
- name: Upload PowerShell Module as Artifact
uses: actions/upload-artifact@v4
with:
name: PowerShell
path: Build/bin/PSModule/Release/*
- name: Create NuGet Packages
working-directory: Src
run: dotnet pack --configuration Release --no-build
- name: Upload NuGet Packages as Artifacts
uses: actions/upload-artifact@v4
with:
name: NuGet
path: Build/package/release/*nupkg
- name: Run Non-Interactive Unit Tests
working-directory: Src
run: dotnet test --filter TestCategory!=Interactive --configuration Debug --no-build
continue-on-error: true
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action/windows@v2
if: always()
with:
files: Build\TestResults\**\*.trx
- name: Cache DotNet Global Tools
id: cache-dotnet-globaltools
uses: actions/cache@v4
with:
path: ~/.dotnet/tools
# Heuristics: The current list of required global tools is defined in this workflow file.
key: ${{ runner.os }}-DotNET-GlobalTools-Build-${{ hashFiles('.github/workflows/autobuild.yml') }}
- name: Install Coverage Report Generator
if: ${{ steps.cache-dotnet-globaltools.outputs.cache-hit != 'true' }}
run: dotnet tool install --global dotnet-reportgenerator-globaltool
- name: Generate Code Coverage Reports
working-directory: Build/TestResults
run: reportgenerator -reports:*/coverage.cobertura.xml -targetdir:. -reporttypes:"HtmlSummary" -title:"WebAuthn Interop Assembly"
- name: Upload Test Results
uses: actions/upload-artifact@v4
with:
name: TestResults
path: |
Build/TestResults/*.*
!**/*.htm
analyze:
name: CodeQL
runs-on: windows-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'csharp' ]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- name: Autobuild
uses: github/codeql-action/autobuild@v2
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2