Skip to content

Commit

Permalink
Merge pull request #4022 from NikCharlebois/Integration-Test-Improvem…
Browse files Browse the repository at this point in the history
…ents

First Commit of Multiple Ones
  • Loading branch information
NikCharlebois authored Dec 12, 2023
2 parents 365c23a + 691f0b5 commit 7a9bc98
Show file tree
Hide file tree
Showing 7 changed files with 2,867 additions and 1,736 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/Global - Integration - INTUNE.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Global - Integration - INTUNE
on: [push]

jobs:
Integration-Global-INTUNE:
# The type of runner that the job will run on
runs-on: windows-latest

# Only when run from the main repo
if: github.repository == 'microsoft/Microsoft365DSC'

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: Install Microsoft365DSC
shell: pwsh
run: |
winrm quickconfig -force
$source = "./Modules/Microsoft365DSC/"
$destination = "C:\Program Files\WindowsPowerShell\Modules"
Copy-Item -Path $source -Recurse -Destination $destination -Container -Force
Update-M365DSCDependencies
- name: Configure Environment
shell: pwsh
run: |
Set-ExecutionPolicy Unrestricted -Force
Get-ChildItem "C:\Program Files\WindowsPowerShell\Modules" -Recurse | Unblock-File
$GlobalAdminPassword = ConvertTo-SecureString $env:PUBLIC_PASSWORD -AsPlainText -Force
Set-M365DSCTelemetryOption -Enabled $false
Set-Item -Path WSMan:\localhost\MaxEnvelopeSizekb -Value 99999
- name: Generate Integration Tests from Examples
shell: pwsh
run: |
Import-Module './Tests/Integration/M365DSCTestEngine.psm1'
New-M365DSCIntegrationTest -Workload INTUNE
- name: Commit files # commit the output folder
shell: pwsh
run: |
git config --local user.email "[email protected]"
git config --local user.name "NikCharlebois"
git add D:/a/Microsoft365DSC/Microsoft365DSC/Tests/Integration/*
git pull
git commit -m "Updated Intune Integration Tests"
git push
$SHA = git rev-parse HEAD
echo "commitid=$SHA" >> $env:GITHUB_OUTPUT
4 changes: 2 additions & 2 deletions .github/workflows/PublishGitHubPages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:
if: always()
shell: pwsh
run: |
git config --local user.email "nik.charlebois@microsoft.com"
git config --local user.name "Nik Charlebois"
git config --local user.email "nicharl@microsoft.com"
git config --local user.name "NikCharlebois"
git add D:/a/Microsoft365DSC/Microsoft365DSC/docs/docs/*
git pull
git commit -m "Updated Resources and Cmdlet documentation pages"
Expand Down
104 changes: 0 additions & 104 deletions Tests/Integration/Generate-M365DSCIntegrationTest.ps1

This file was deleted.

Loading

0 comments on commit 7a9bc98

Please sign in to comment.