Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
slawa4s authored Jun 21, 2022
1 parent 31f2b31 commit 9e519b2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ on:
launch_param:
description: 'Run utbot to all project, directory or file'
required: true
param_name:
description: 'directory or file name'
required: true

runs:
using: "composite"
Expand All @@ -43,6 +46,7 @@ runs:
shell: sh

- name: Testing project
if: ${{ inputs.launch_param == 'project' }}
run: |
cd "./utbot-release-${{ inputs.utbot_version }}/utbot_distr"
export CURRENT_FOLDER="$( cd $( dirname . ) && pwd )"
Expand All @@ -51,6 +55,16 @@ runs:
$RUN_SYSTEM_SCRIPT_PATH "cli" $UTBOT_CLI_OPTIONS
shell: sh

- name: Testing file
if: ${{ inputs.launch_param == 'file' }}
run: |
cd "./utbot-release-${{ inputs.utbot_version }}/utbot_distr"
export CURRENT_FOLDER="$( cd $( dirname . ) && pwd )"
RUN_SYSTEM_SCRIPT_PATH=$CURRENT_FOLDER/utbot_run_system.sh
UTBOT_CLI_OPTIONS="generate --project-path ../.. file --file-path ../../${{ inputs.param_name }}"
$RUN_SYSTEM_SCRIPT_PATH "cli" $UTBOT_CLI_OPTIONS
shell: sh

- name: Create Pull Request with tests and codeAnalysis information
uses: peter-evans/create-pull-request@v4
if: ${{ inputs.test_push_info == 'true' }}
Expand Down

0 comments on commit 9e519b2

Please sign in to comment.