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
64 changes: 64 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: CI

on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:

permissions:
contents: read

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

env:
APP_PROJECT: src/Logbert/Logbert.csproj
TEST_PROJECT: tests/Logbert.Tests/Logbert.Tests.csproj

jobs:
validate:
name: Build and test
runs-on: windows-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json

- name: Show .NET SDK
shell: pwsh
run: dotnet --info

- name: Restore
shell: pwsh
run: dotnet restore "$env:TEST_PROJECT"

- name: Build
shell: pwsh
run: dotnet build "$env:APP_PROJECT" --configuration Release --no-restore

- name: Test
shell: pwsh
run: dotnet test "$env:TEST_PROJECT" --configuration Release --no-restore --logger trx --results-directory TestResults

- name: NuGet vulnerability report
shell: pwsh
run: dotnet list "$env:APP_PROJECT" package --include-transitive --vulnerable

- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results-windows
path: TestResults/*.trx
if-no-files-found: ignore
retention-days: 14
115 changes: 0 additions & 115 deletions .github/workflows/dotnet-desktop.yml

This file was deleted.

Loading
Loading