Skip to content

Commit f60482a

Browse files
committed
Corrected WorkFlow
1 parent 69371aa commit f60482a

1 file changed

Lines changed: 2 additions & 12 deletions

File tree

.github/workflows/tests.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,8 @@ jobs:
1515
- name: Run Tests
1616
shell: pwsh
1717
run: |
18-
# Fix PSGallery
19-
Unregister-PSRepository -Name PSGallery -ErrorAction SilentlyContinue
20-
Register-PSRepository -Name PSGallery `
21-
-SourceLocation "https://www.powershellgallery.com/api/v2" `
22-
-InstallationPolicy Trusted `
23-
-PackageManagementProvider NuGet
24-
25-
# Install Pester
26-
Install-Module Pester -Force -Scope CurrentUser
27-
28-
# Import your module
18+
# Import your module explicitly
2919
Import-Module "$env:GITHUB_WORKSPACE/VSCode-Updater.psm1" -Force
3020
31-
# Run tests
21+
# Run Pester using the built-in version
3222
Invoke-Pester -Path Tests -Output Detailed

0 commit comments

Comments
 (0)