This repository has been archived by the owner on Jul 9, 2024. It is now read-only.
- adds permissions to SQ workflow #430
Workflow file for this run
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 and Test | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ 'main', 'dev', 'feature/*' ] | |
pull_request: | |
branches: [ 'main', 'dev' ] | |
jobs: | |
build-and-test: | |
runs-on: windows-latest | |
env: | |
solutionName: Microsoft.Kiota.Http.HttpClientLibrary.sln | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.x | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: csharp | |
- name: Restore dependencies | |
run: dotnet restore ${{ env.solutionName }} | |
- name: Build | |
run: dotnet build ${{ env.solutionName }} --no-restore -c Debug /p:UseSharedCompilation=false | |
- name: Test | |
run: dotnet test ${{ env.solutionName }} --no-build --verbosity normal -c Debug /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=opencover | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 |