Skip to content

Commit 8082e7f

Browse files
Merge pull request #49 from gioele/load-sys-lib-support
test/test_helper.bash: Use bats_load_library to load bats-support
2 parents ffe84ea + 58236f4 commit 8082e7f

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/tests.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@ name: Tests
55

66
on:
77
push:
8-
branches: [ master ]
8+
workflow_dispatch:
99
pull_request:
1010
branches: [ master ]
1111

1212
jobs:
1313
build:
1414

1515
runs-on: ubuntu-latest
16-
1716
steps:
1817
- uses: actions/checkout@v2
1918
- uses: actions/setup-node@v2
@@ -24,4 +23,4 @@ jobs:
2423
restore-keys: |
2524
${{ runner.os }}-node-
2625
- run: npm install
27-
- run: npm test
26+
- run: BATS_LIB_PATH="$PWD/node_modules" npm test

test/test_helper.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Load dependencies.
2-
load "${BATS_TEST_DIRNAME}/../node_modules/bats-support/load.bash"
2+
bats_load_library 'bats-support'
33

44
# Load library.
55
load '../load'

0 commit comments

Comments
 (0)