Skip to content

feat: Upgrade to .NET 6, add CI workflow, and fix tests #2

feat: Upgrade to .NET 6, add CI workflow, and fix tests

feat: Upgrade to .NET 6, add CI workflow, and fix tests #2

Workflow file for this run

name: .NET Build and Test
on:
push:
branches: [ '*' ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: windows-latest # Changed to windows-latest due to EventLog dependency
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup .NET 6
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'
- name: Restore dependencies
run: dotnet restore "EventLogAnalyzer.sln"
- name: Build
run: dotnet build "EventLogAnalyzer.sln" --configuration Release --no-restore
- name: Test
run: dotnet test "EventLogAnalyzer.sln" --configuration Release --no-build --no-restore