You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opennlp.apache.org by ma...@apache.org on 2026/07/08 06:09:26 UTC

(opennlp) branch opennlp-2.x updated: OPENNLP-1881: Pin Pester to 6.0.0 and fix Invoke-Pester -Path param (#1160)

This is an automated email from the ASF dual-hosted git repository.

mawiesne pushed a commit to branch opennlp-2.x
in repository https://gitbox.apache.org/repos/asf/opennlp.git


The following commit(s) were added to refs/heads/opennlp-2.x by this push:
     new 7a07b082d OPENNLP-1881: Pin Pester to 6.0.0 and fix Invoke-Pester -Path param (#1160)
7a07b082d is described below

commit 7a07b082d7eee23d29cad67cb883d5452b68a629
Author: Richard Zowalla <13...@users.noreply.github.com>
AuthorDate: Wed Jul 8 08:09:21 2026 +0200

    OPENNLP-1881: Pin Pester to 6.0.0 and fix Invoke-Pester -Path param (#1160)
    
    Pester v6 removed the legacy -Script parameter from Invoke-Pester,
    breaking the Windows shell-tests job since Install-Module always
    pulls the latest release. Pin the version and switch to -Path so the
    job stays reproducible across future Pester releases.
---
 .github/workflows/maven.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 0f7d5c405..e418761b9 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -194,7 +194,7 @@ jobs:
 
       - name: Install Pester
         run: |
-          Install-Module -Name Pester -Force -Scope CurrentUser
+          Install-Module -Name Pester -RequiredVersion 6.0.0 -Force -Scope CurrentUser
           Import-Module Pester
         shell: pwsh
 
@@ -236,7 +236,7 @@ jobs:
           $env:OPENNLP_HOME = $OPENNLP_HOME_PATH
           $env:PATH = "$env:OPENNLP_HOME\bin;$env:PATH"
 
-          Invoke-Pester -Script "./opennlp-distr/src/test/ps/test_opennlp.Tests.ps1" -Output Detailed
+          Invoke-Pester -Path "./opennlp-distr/src/test/ps/test_opennlp.Tests.ps1" -Output Detailed
         shell: pwsh
         env:
           JAVA_HOME: ${{ env.JAVA_HOME }}