Skip to content

Commit

Permalink
fix bats action
Browse files Browse the repository at this point in the history
  • Loading branch information
brokenpip3 committed Nov 12, 2023
1 parent 7efc122 commit 94d1ef6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/auto-tests-bats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,20 @@ jobs:
- name: Ensure Golang runtime dependencies
run: make go-dependencies

- name: Setup BATS
uses: mig4/setup-bats@v1
- name: Setup Bats and libs
uses: brokenpip3/setup-bats[email protected]
with:
bats-version: 1.9.0

- name: Setup Bats libs
uses: brokenpip3/setup-bats[email protected]
support-path: "${{ github.workspace }}/.bats/bats-support"
assert-path: "${{ github.workspace }}/.bats/bats-assert"
detik-path: "${{ github.workspace }}/.bats/bats-detik"
file-path: "${{ github.workspace }}/.bats/bats-file"

- name: Kind setup
uses: helm/[email protected]
with:
cluster_name: ${{env.KIND_CLUSTER_NAME}}

- name: Jenkins Operator - bats tests
env:
BATS_LIB_PATH: "${{ github.workspace }}/.bats"
run: make bats-tests
2 changes: 1 addition & 1 deletion test/bats/test_helper.bash
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
_common_setup() {
export BATS_LIB_PATH="/usr/lib/"
export BATS_LIB_PATH="${BATS_LIB_PATH}:/usr/lib"
bats_load_library bats-support
bats_load_library bats-assert
bats_load_library bats-file
Expand Down

0 comments on commit 94d1ef6

Please sign in to comment.