Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bats-core/bats-assert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/tests.yml5
-rw-r--r--test/test_helper.bash2
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'