This repository has been archived by the owner on Dec 21, 2024. It is now read-only.
Format code to closer match with Microsoft standards #283
This file contains 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: Build Test | |
on: | |
push: | |
branches: [ "main", "dev" ] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
targetplatform: [x64] | |
runs-on: windows-latest | |
env: | |
Project_File: ActiveDirectoryQuerier\ActiveDirectoryQuerier.csproj | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install .NET Core | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '8.0.x' | |
- name: Install Active Directory Module | |
run: | | |
Install-WindowsFeature RSAT-AD-PowerShell | |
Import-Module ActiveDirectory | |
- name: Dotnet Restore & Build | |
run: dotnet build $env:Project_File -c Debug -f net8.0-windows -r win-${{ matrix.targetplatform }} | |
- name: Dotnet Test with Coverage | |
run: | | |
dotnet test $env:Project_File --no-build |