Skip to content

Commit

Permalink
CI: Fix bats not found when installed via npm
Browse files Browse the repository at this point in the history
Windows and Linux go a newer version ( v18.20.3) with npm 10.7 (instead of 10.5)
  • Loading branch information
martin-schulze-vireso committed May 30, 2024
1 parent f27d259 commit ec885f1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit ec885f1

Please sign in to comment.