Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration tests pipeline #1124

Merged
merged 2 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 32 additions & 1 deletion .azure-pipelines/generation-templates/generate_adapter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ parameters:
- name: Sign
type: boolean
default: false
- name: Integration
type: boolean
default: false

steps:
- task: powershell@2
Expand Down Expand Up @@ -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:
Expand Down
29 changes: 29 additions & 0 deletions .azure-pipelines/integration-tests.yml
Original file line number Diff line number Diff line change
@@ -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