Skip to content

Commit

Permalink
Merge branch 'master' into yo-office
Browse files Browse the repository at this point in the history
  • Loading branch information
millerds committed Jul 29, 2024
2 parents 6c482a0 + 8761cf6 commit 028f9cb
Show file tree
Hide file tree
Showing 10 changed files with 203 additions and 216 deletions.
2 changes: 1 addition & 1 deletion .azure-devops/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ steps:
displayName: 'Build'
inputs:
command: custom
customCommand: 'run build'
customCommand: 'run build'
4 changes: 2 additions & 2 deletions .azure-devops/cleanup.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
steps:
- task: mspremier.PostBuildCleanup.PostBuildCleanup-task.PostBuildCleanup@3
displayName: "Cleanup"
- task: mspremier.PostBuildCleanup.PostBuildCleanup-task.PostBuildCleanup@3
displayName: "Cleanup"
9 changes: 4 additions & 5 deletions .azure-devops/devcerts.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
steps:
- script: |
echo Install Office-AddinDev-Certs at machine level
call npx office-addin-dev-certs install --machine
displayName: 'Install add-in dev cert'
- script: |
echo Install Office-AddinDev-Certs at machine level
call npx office-addin-dev-certs install --machine
displayName: 'Install add-in dev cert'
30 changes: 12 additions & 18 deletions .azure-devops/edgewebview.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
steps:
- script: |
echo Enable EdgeWebView Loopback
call npx office-addin-dev-settings appcontainer EdgeWebView --loopback --yes
echo Set Edge WebView Registry Settings
set PATH1="HKEY_CURRENT_USER\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Mappings\S-1-15-2-1310292540-1029022339-4008023048-2190398717-53961996-4257829345-603366646"
reg add %PATH1% /f /v DisplayName /t REG_SZ /d "@{Microsoft.Win32WebViewHost_10.0.19041.423_neutral_neutral_cw5n1h2txyewy?ms-resource://Windows.Win32WebViewHost/resources/DisplayName}"
reg add %PATH1% /f /v Moniker /t REG_SZ /d "microsoft.win32webviewhost_cw5n1h2txyewy"
set PATH2="HKEY_CURRENT_USER\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Mappings\S-1-15-2-1310292540-1029022339-4008023048-2190398717-53961996-4257829345-603366646\Children\S-1-15-2-1310292540-1029022339-4008023048-2190398717-53961996-4257829345-603366646-3829197285-1050560373-949424154-522343454"
reg add %PATH2% /f /v DisplayName /t REG_SZ /d "microsoft.win32webviewhost_cw5n1h2txyewy/123"
reg add %PATH2% /f /v Moniker /t REG_SZ /d "123"
reg add %PATH2% /f /v ParentMoniker /t REG_SZ /d "microsoft.win32webviewhost_cw5n1h2txyewy"
displayName: 'Enable Edge WebView'
- script: |
echo Enable EdgeWebView Loopback
call npx office-addin-dev-settings appcontainer EdgeWebView --loopback --yes
echo Set Edge WebView Registry Settings
set PATH1="HKEY_CURRENT_USER\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Mappings\S-1-15-2-1310292540-1029022339-4008023048-2190398717-53961996-4257829345-603366646"
reg add %PATH1% /f /v DisplayName /t REG_SZ /d "@{Microsoft.Win32WebViewHost_10.0.19041.423_neutral_neutral_cw5n1h2txyewy?ms-resource://Windows.Win32WebViewHost/resources/DisplayName}"
reg add %PATH1% /f /v Moniker /t REG_SZ /d "microsoft.win32webviewhost_cw5n1h2txyewy"
set PATH2="HKEY_CURRENT_USER\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Mappings\S-1-15-2-1310292540-1029022339-4008023048-2190398717-53961996-4257829345-603366646\Children\S-1-15-2-1310292540-1029022339-4008023048-2190398717-53961996-4257829345-603366646-3829197285-1050560373-949424154-522343454"
reg add %PATH2% /f /v DisplayName /t REG_SZ /d "microsoft.win32webviewhost_cw5n1h2txyewy/123"
reg add %PATH2% /f /v Moniker /t REG_SZ /d "123"
reg add %PATH2% /f /v ParentMoniker /t REG_SZ /d "microsoft.win32webviewhost_cw5n1h2txyewy"
displayName: 'Enable Edge WebView'
98 changes: 47 additions & 51 deletions .azure-devops/full-pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,53 +1,49 @@
# Build a general Node.js project with npm.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript

jobs:
- job: Windows_10_Latest
resources:
repositories:
- repository: CustomPipelineTemplates
type: git
name: 1ESPipelineTemplates/OfficePipelineTemplates
ref: refs/tags/release
extends:
template: /v1/Office.Unofficial.PipelineTemplate.yml@CustomPipelineTemplates
parameters:
pool:
name: OE-OfficeClientApps
steps:
- template: ./install.yml
- template: ./lint.yml
- template: ./build.yml
- template: ./devcerts.yml
- template: ./edgewebview.yml
- template: ./test.yml
parameters:
webView: "edge-chromium"

- job: WebView_EdgeLegacy
pool:
name: OE-OfficeClientApps
steps:
- template: ./install.yml
- template: ./lint.yml
- template: ./build.yml
- template: ./devcerts.yml
- template: ./edgewebview.yml
- template: ./test.yml
parameters:
webView: "edge-legacy"

- job: WebView_IE
pool:
name: OE-OfficeClientApps
steps:
- template: ./install.yml
- template: ./lint.yml
- template: ./build.yml
- template: ./devcerts.yml
- template: ./edgewebview.yml
- template: ./test.yml
parameters:
webView: "ie"

- job: Mac
pool:
name: OPX Mac Dogfood Pool
steps:
- template: ./install.yml
- template: ./lint.yml
- template: ./build.yml
- template: ./test.yml
- template: ./cleanup.yml
sdl:
eslint:
configuration: required
parser: '@typescript-eslint/parser'
parserOptions: sourceType:module
stages:
- stage: stage
jobs:
- job: Windows_10_Latest
steps:
- template: /.azure-devops/install.yml@self
- template: /.azure-devops/lint.yml@self
- template: /.azure-devops/build.yml@self
- template: /.azure-devops/devcerts.yml@self
- template: /.azure-devops/edgewebview.yml@self
- template: /.azure-devops/test.yml@self
parameters:
webView: "edge-chromium"
- job: WebView_EdgeLegacy
steps:
- template: /.azure-devops/install.yml@self
- template: /.azure-devops/lint.yml@self
- template: /.azure-devops/build.yml@self
- template: /.azure-devops/devcerts.yml@self
- template: /.azure-devops/edgewebview.yml@self
- template: /.azure-devops/test.yml@self
parameters:
webView: "edge-legacy"
- job: WebView_IE
steps:
- template: /.azure-devops/install.yml@self
- template: /.azure-devops/lint.yml@self
- template: /.azure-devops/build.yml@self
- template: /.azure-devops/devcerts.yml@self
- template: /.azure-devops/edgewebview.yml@self
- template: /.azure-devops/test.yml@self
parameters:
webView: "ie"
2 changes: 1 addition & 1 deletion .azure-devops/install.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
steps:
- task: Npm@1
displayName: 'Install'
displayName: 'Install'
2 changes: 1 addition & 1 deletion .azure-devops/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ steps:
displayName: 'Lint'
inputs:
command: custom
customCommand: 'run lint'
customCommand: 'run lint'
23 changes: 10 additions & 13 deletions .azure-devops/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,14 @@ parameters:
- name: webView
type: string
default: "edge-chromium"

steps:
- task: CmdLine@2
inputs:
script: |
echo Setting WebView Type: ${{ parameters.webView }}
call npx office-addin-dev-settings webview manifest.xml ${{ parameters.webView }}
call npx office-addin-dev-settings webview test/end-to-end/test-manifest.xml ${{ parameters.webView }}
echo Running Tests
npm run test
echo Done running tests
displayName: 'Run Tests'
- task: CmdLine@2
inputs:
script: |
echo Setting WebView Type: ${{ parameters.webView }}
call npx office-addin-dev-settings webview manifest.xml ${{ parameters.webView }}
call npx office-addin-dev-settings webview test/end-to-end/test-manifest.xml ${{ parameters.webView }}
echo Running Tests
npm run test
echo Done running tests
displayName: 'Run Tests'
Loading

0 comments on commit 028f9cb

Please sign in to comment.