From 1e7fd164982f016b4fc4354f22b9326a23469d69 Mon Sep 17 00:00:00 2001 From: Animesh Date: Tue, 17 Oct 2023 14:35:05 +0530 Subject: [PATCH] feat: new framwork support added Signed-off-by: Animesh --- action.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/action.yml b/action.yml index 731ab99..4c11cfa 100644 --- a/action.yml +++ b/action.yml @@ -43,13 +43,16 @@ runs: name: Run Script run: | ${GITHUB_ACTION_PATH}/install.sh - sudo -E keploy test -c "./application" --delay ${DELAY} --path ${KEPLOY_PATH} >> ${GITHUB_WORKSPACE}/${WORKDIR}/TestReport.txt - cat ${GITHUB_WORKSPACE}/${WORKDIR}/TestReport.txt - sed -i 's/no of test cases: //g' ${GITHUB_WORKSPACE}/${WORKDIR}/TestReport.txt >> ${GITHUB_WORKSPACE}/${WORKDIR}/temp.yml - cat ${GITHUB_WORKSPACE}/${WORKDIR}/temp.yml + sudo -E keploy test -c "${COMMAND}" --delay ${DELAY} --path ${KEPLOY_PATH} >> ${GITHUB_WORKSPACE}/${WORKDIR}/TestReport.txt + grep 'no of test cases:' ${GITHUB_WORKSPACE}/${WORKDIR}/TestReport.txt >> ${GITHUB_WORKSPACE}/${WORKDIR}/temp.yml + cat ${GITHUB_WORKSPACE}/${WORKDIR}/temp.txt cd ${GITHUB_WORKSPACE}/${WORKDIR}/keploy/testReports echo "No. of files is $(find "$@" -type f | wc -l)" - echo "No. of Reports is $(find "$@" -type f | wc -l)" >> ${GITHUB_WORKSPACE}/${WORKDIR}/temp.yml + echo "No. of Reports is $(find "$@" -type f | wc -l)" >> ${GITHUB_WORKSPACE}/${WORKDIR}/temp.txt + ls + cat ${GITHUB_WORKSPACE}/${WORKDIR}/temp.txt + cat ${GITHUB_WORKSPACE}/${WORKDIR}/TestReport.txt + shell: sh env: WORKDIR: ${{ inputs.working-directory }}