|
|
@ -4,6 +4,7 @@ on: |
|
|
|
push: |
|
|
|
push: |
|
|
|
paths: |
|
|
|
paths: |
|
|
|
- 'docker-compose/1_Auto_Upstall/noco.sh' |
|
|
|
- 'docker-compose/1_Auto_Upstall/noco.sh' |
|
|
|
|
|
|
|
- '.github/workflows/bats-test.yml' |
|
|
|
workflow_dispatch: |
|
|
|
workflow_dispatch: |
|
|
|
|
|
|
|
|
|
|
|
jobs: |
|
|
|
jobs: |
|
|
@ -18,7 +19,7 @@ jobs: |
|
|
|
- name: Prepare matrix for test files |
|
|
|
- name: Prepare matrix for test files |
|
|
|
id: set-matrix |
|
|
|
id: set-matrix |
|
|
|
run: | |
|
|
|
run: | |
|
|
|
BATS_FILES=$(find docker-compose/setup-script/tests -name '*.bats') |
|
|
|
BATS_FILES=$(find docker-compose/1_Auto_Upstall/tests -name '*.bats') |
|
|
|
MATRIX_JSON=$(echo $BATS_FILES | tr -d '\n' | jq -Rsc 'split(" ")' | tr '"' "'") |
|
|
|
MATRIX_JSON=$(echo $BATS_FILES | tr -d '\n' | jq -Rsc 'split(" ")' | tr '"' "'") |
|
|
|
echo "matrix=$MATRIX_JSON" >> $GITHUB_OUTPUT |
|
|
|
echo "matrix=$MATRIX_JSON" >> $GITHUB_OUTPUT |
|
|
|
test: |
|
|
|
test: |
|
|
@ -39,7 +40,7 @@ jobs: |
|
|
|
|
|
|
|
|
|
|
|
- name: Get working directory |
|
|
|
- name: Get working directory |
|
|
|
run: | |
|
|
|
run: | |
|
|
|
WORKING_DIR="$(pwd)/docker-compose/setup-script/tests" |
|
|
|
WORKING_DIR="$(pwd)/docker-compose/1_Auto_Upstall/tests" |
|
|
|
echo "WORKING_DIR=$WORKING_DIR" >> $GITHUB_ENV |
|
|
|
echo "WORKING_DIR=$WORKING_DIR" >> $GITHUB_ENV |
|
|
|
|
|
|
|
|
|
|
|
- name: Run BATS test |
|
|
|
- name: Run BATS test |
|
|
|