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