Skip to content

Commit 7c79719

Browse files
committed
Add installPSResources.ps1 to remove dependency on PSES repo
1 parent d3385b9 commit 7c79719

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/ci-test.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66
pull_request:
77
# The branches below must be a subset of the branches above
88
branches: [ main ]
9-
paths-ignore: [ '**/*.md' ]
109
merge_group:
1110
types: [ checks_requested ]
1211

@@ -50,7 +49,7 @@ jobs:
5049

5150
- name: Install PSResources
5251
shell: pwsh
53-
run: ../PowerShellEditorServices/tools/installPSResources.ps1
52+
run: ./tools/installPSResources.ps1
5453

5554
- name: Deploy generated NuGet configuration
5655
shell: pwsh

tools/installPSResources.ps1

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
3+
4+
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted | Out-Null
5+
if ($PSVersionTable.PSVersion.Major -lt 6) {
6+
throw "The build script requires PowerShell 7!"
7+
}
8+
9+
# TODO: Switch to Install-PSResource when CI uses PowerShell 7.4
10+
Install-Module -Name InvokeBuild -Scope CurrentUser
11+
Install-Module -Name platyPS -Scope CurrentUser

0 commit comments

Comments
 (0)