From f27d259d7358293b752753df9562a1a82d096997 Mon Sep 17 00:00:00 2001 From: Martin Schulze Date: Thu, 30 May 2024 22:56:48 +0200 Subject: [PATCH] CI: Split npm commands --- .github/workflows/tests.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5e8f1641e6..947f71454e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -89,14 +89,13 @@ jobs: steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 + - run: npm pack ./ + - run: sudo npm install --loglevel verbose -g ./bats-*.tgz - name: Run test on OS ${{ matrix.os }} shell: 'script -q -e -c "bash {0}"' # work around tty issues env: TERM: linux # fix tput for tty issue work around - run: | - npm pack ./ - sudo npm install -g ./bats-*.tgz - bats test --print-output-on-failure + run: bats test --print-output-on-failure windows: runs-on: windows-2019