Skip to content

Commit

Permalink
Merge pull request #49 from gioele/load-sys-lib-support
Browse files Browse the repository at this point in the history
test/test_helper.bash: Use bats_load_library to load bats-support
  • Loading branch information
martin-schulze-vireso authored Oct 22, 2022
2 parents ffe84ea + 58236f4 commit 8082e7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@ name: Tests

on:
push:
branches: [ master ]
workflow_dispatch:
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
Expand All @@ -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
2 changes: 1 addition & 1 deletion test/test_helper.bash
Original file line number Diff line number Diff line change
@@ -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'
Expand Down

0 comments on commit 8082e7f

Please sign in to comment.