diff options
author | Martin Schulze <37703201+martin-schulze-vireso@users.noreply.github.com> | 2022-10-23 01:42:41 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-23 01:42:41 +0300 |
commit | 8082e7fbccc3bd37e9ecb753ded6bf1f9d21bd3a (patch) | |
tree | 2f28f86ea09029523444cc731c4be9767315e0b9 | |
parent | ffe84ea5dd43b568851549b3e241db150c12929c (diff) | |
parent | 58236f42c8fc47d5d3f708d54b93b5583a50fd87 (diff) |
Merge pull request #49 from gioele/load-sys-lib-support
test/test_helper.bash: Use bats_load_library to load bats-support
-rw-r--r-- | .github/workflows/tests.yml | 5 | ||||
-rw-r--r-- | test/test_helper.bash | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 18915d0..ad332f0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -5,7 +5,7 @@ name: Tests on: push: - branches: [ master ] + workflow_dispatch: pull_request: branches: [ master ] @@ -13,7 +13,6 @@ jobs: build: runs-on: ubuntu-latest - steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 @@ -24,4 +23,4 @@ jobs: restore-keys: | ${{ runner.os }}-node- - run: npm install - - run: npm test + - run: BATS_LIB_PATH="$PWD/node_modules" npm test diff --git a/test/test_helper.bash b/test/test_helper.bash index 65d366f..beb9298 100644 --- a/test/test_helper.bash +++ b/test/test_helper.bash @@ -1,5 +1,5 @@ # Load dependencies. -load "${BATS_TEST_DIRNAME}/../node_modules/bats-support/load.bash" +bats_load_library 'bats-support' # Load library. load '../load' |