From ec885f1f39480624458b391d29748b367d3264d8 Mon Sep 17 00:00:00 2001 From: Martin Schulze Date: Thu, 30 May 2024 22:58:11 +0200 Subject: [PATCH] CI: Fix bats not found when installed via npm Windows and Linux go a newer version ( v18.20.3) with npm 10.7 (instead of 10.5) --- .github/workflows/tests.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 947f71454e..31ac16b4a0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -89,6 +89,8 @@ jobs: steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 + with: + node-version: v18.20.2 - run: npm pack ./ - run: sudo npm install --loglevel verbose -g ./bats-*.tgz - name: Run test on OS ${{ matrix.os }} @@ -115,6 +117,8 @@ jobs: steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 + with: + node-version: v18.20.2 - run: npm pack ./ - run: npm install -g (get-item .\bats-*.tgz).FullName - run: bats -T --print-output-on-failure test @@ -160,6 +164,8 @@ jobs: steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 + with: + node-version: v18.20.2 - name: Install unbuffer via expect run: brew install expect - name: Run test on OS ${{ matrix.os }}