Update vsts-compliance.yml to use managed identity #120
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
# Copyright (C) Microsoft Corporation. All rights reserved. | |
# Licensed under the MIT license. See LICENSE.txt in the project root for license information. | |
name: PR Build | |
on: [ pull_request ] | |
env: | |
# Path to the project source. | |
PROJECT_PATH: VSConfigFinder | |
# Path to the test project source. | |
TEST_PROJECT_PATH: VSConfigFinder.Test | |
# Configuration type to build. | |
BUILD_CONFIGURATION: Release | |
jobs: | |
build: | |
runs-on: windows-2022 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # avoid shallow clone so nbgv can do its work. | |
- name: Install .NET Core SDK | |
uses: actions/setup-dotnet@v3 | |
with: | |
global-json-file: global.json | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --no-restore --configuration ${{ env.BUILD_CONFIGURATION }} ${{ env.PROJECT_PATH }} | |
- name: Test | |
run: dotnet test --verbosity normal --configuration ${{ env.BUILD_CONFIGURATION }} ${{ env.TEST_PROJECT_PATH }} | |
- name: Publish | |
run: dotnet publish --no-build --configuration ${{ env.BUILD_CONFIGURATION }} ${{ env.PROJECT_PATH }} |