-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (27 loc) · 948 Bytes
/
Copy pathci.yml
File metadata and controls
30 lines (27 loc) · 948 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: build-and-test
on:
push:
branches: ["main"]
pull_request:
permissions:
contents: read
jobs:
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: "10.0.x"
cache: true
cache-dependency-path: "**/packages.lock.json"
- name: Restore locked dependencies
run: dotnet restore DarksFIDO2.slnx --locked-mode
- name: Build
run: dotnet build DarksFIDO2.slnx -c Release --no-restore
- name: Test
run: dotnet run --project tests/DarksFIDO2.Tests/DarksFIDO2.Tests.csproj -c Release --no-build
- name: Browser WebAuthn ceremony
run: dotnet run --project tests/DarksFIDO2.BrowserTests/DarksFIDO2.BrowserTests.csproj -c Release --no-build
- name: Audit NuGet dependencies
run: dotnet list DarksFIDO2.slnx package --vulnerable --include-transitive