diff --git a/.azure-pipelines/generation-templates/generate_adapter.yml b/.azure-pipelines/generation-templates/generate_adapter.yml index 5a92c32bc0..52a8488c52 100644 --- a/.azure-pipelines/generation-templates/generate_adapter.yml +++ b/.azure-pipelines/generation-templates/generate_adapter.yml @@ -6,6 +6,9 @@ parameters: - name: Sign type: boolean default: false + - name: Integration + type: boolean + default: false steps: - task: powershell@2 @@ -205,7 +208,35 @@ steps: inputs: testResultsFormat: NUnit testResultsFiles: "./test/results/pester-test-results-preview.xml" - failTaskOnFailedTests: true + failTaskOnFailedTests: true +- ${{ if eq(parameters.Integration, true) }}: + - task: powershell@2 + displayName: 'Run Entra integration tests' + inputs: + targetType: inline + pwsh: true + script: | + cd test/module/Entra/Integration + Invoke-Pester -OutputFile "./test/results/pester-test-results-preview.xml" -OutputFormat NUnitXml + - task: PublishTestResults@2 + inputs: + testResultsFormat: NUnit + testResultsFiles: "./test/results/pester-test-results-preview.xml" + failTaskOnFailedTests: true +- ${{ if eq(parameters.Integration, true) }}: + - task: powershell@2 + displayName: 'Run EntraBeta integration tests' + inputs: + targetType: inline + pwsh: true + script: | + cd test/module/EntraBeta/Integration + Invoke-Pester -OutputFile "./test/results/pester-test-results-preview.xml" -OutputFormat NUnitXml + - task: PublishTestResults@2 + inputs: + testResultsFormat: NUnit + testResultsFiles: "./test/results/pester-test-results-preview.xml" + failTaskOnFailedTests: true - task: powershell@2 displayName: 'Remove Local Gallery' inputs: diff --git a/.azure-pipelines/integration-tests.yml b/.azure-pipelines/integration-tests.yml new file mode 100644 index 0000000000..3046b03caa --- /dev/null +++ b/.azure-pipelines/integration-tests.yml @@ -0,0 +1,29 @@ +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. +# https://aka.ms/yaml + +name: $(SourceBranchName)-PR-$(Date:yyyy-MM-dd)$(Rev:.r) + +schedules: +- cron: '0 0 * * *' + displayName: Daily midnight build + branches: + include: + - main + +trigger: none +pr: none + +pool: + vmImage: windows-latest +stages: +- stage: Build + displayName: 'Integration tests build' + jobs: + - job: Build + displayName: Microsoft Graph Compatibility Adapter Build and Artifact Generations + steps: + - template: ./generation-templates/generate_adapter.yml + parameters: + Integration: true + Sign: false \ No newline at end of file