feat: Upgrade to .NET 6, add CI workflow, and fix tests #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |