Remove azure pipelines yml and add github workflows/actions · microsoft/VSConfigFinder@28c4bdf (original) (raw)

Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
1 +# Copyright (C) Microsoft Corporation. All rights reserved.
2 +# Licensed under the MIT license. See LICENSE.txt in the project root for license information.
3 +
4 +name: PR Build
5 +
6 +on: [ push, pull_request ]
7 +
8 +env:
9 +# Path to the project source.
10 +PROJECT_PATH: VSConfigFinder
11 +
12 +# Path to the test project source.
13 +TEST_PROJECT_PATH: VSConfigFinder.Test
14 +
15 +# Configuration type to build.
16 +BUILD_CONFIGURATION: Release
17 +
18 +jobs:
19 +build:
20 +runs-on: windows-2022
21 +
22 +steps:
23 + - name: Checkout
24 +uses: actions/checkout@v3
25 +
26 + - name: Install .NET Core SDK
27 +uses: actions/setup-dotnet@v3
28 +with:
29 +dotnet-version: 7.x
30 +
31 + - name: Restore dependencies
32 +run: dotnet restore
33 +
34 + - name: Build
35 +run: dotnet build --no-restore --configuration env.BUILDCONFIGURATION{{ env.BUILD_CONFIGURATION }} env.BUILDCONFIGURATION{{ env.PROJECT_PATH }}
36 +
37 + - name: Test
38 +run: dotnet test --no-build --verbosity normal --configuration env.BUILDCONFIGURATION{{ env.BUILD_CONFIGURATION }} env.BUILDCONFIGURATION{{ env.TEST_PROJECT_PATH }}