From 28c4bdff029160153034892daff481dcf1cf0cb3 Mon Sep 17 00:00:00 2001 From: Skylar Date: Tue, 21 Feb 2023 15:46:24 -0800 Subject: [PATCH] Remove azure pipelines yml and add github workflows/actions --- .github/workflows/actions-pr.yml | 38 +++++++++++++++++++++++++++++++ azure-pipelines.yml | 39 -------------------------------- 2 files changed, 38 insertions(+), 39 deletions(-) create mode 100644 .github/workflows/actions-pr.yml delete mode 100644 azure-pipelines.yml diff --git a/.github/workflows/actions-pr.yml b/.github/workflows/actions-pr.yml new file mode 100644 index 0000000..34cfc87 --- /dev/null +++ b/.github/workflows/actions-pr.yml @@ -0,0 +1,38 @@ +# 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: [ push, 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 + + - name: Install .NET Core SDK + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 7.x + + - 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 --no-build --verbosity normal --configuration ${{ env.BUILD_CONFIGURATION }} ${{ env.TEST_PROJECT_PATH }} \ No newline at end of file diff --git a/azure-pipelines.yml b/azure-pipelines.yml deleted file mode 100644 index 1511c71..0000000 --- a/azure-pipelines.yml +++ /dev/null @@ -1,39 +0,0 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See LICENSE.txt in the project root for license information. - -variables: - BuildConfiguration: Release - -trigger: none - -pr: - branches: - include: - - main - paths: - exclude: - - README.md - -pool: - vmImage: windows-2022 - - -steps: -- task: UseDotNet@2 - displayName: 'Install .NET Core SDK' - inputs: - version: '7.x' - -- task: DotNetCoreCLI@2 - displayName: Build - inputs: - command: 'build' - projects: 'VSConfigFinder' - arguments: '--configuration $(BuildConfiguration)' - -- task: DotNetCoreCLI@2 - displayName: Test - inputs: - command: 'test' - projects: 'VSConfigFinder.Test' - arguments: '--configuration $(BuildConfiguration)' \ No newline at end of file