From 708d2bdac4bbb18759afca491b4955ef2bf06ce3 Mon Sep 17 00:00:00 2001 From: Victor Ferrer Date: Mon, 22 Nov 2021 12:38:46 +0100 Subject: [PATCH] Include base-url argument - Make suite argument optional - Update readme --- README.md | 14 +++++++++++--- action.yml | 8 ++++++-- entrypoint.sh | 2 +- 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 4e7215b..b9db0ba 100644 --- a/README.md +++ b/README.md @@ -14,13 +14,21 @@ This action makes the testim.io cli available to your workflows ### `grid` -**Required** The grid on which to execute the tests. Default `"Testim-Grid"`. +The grid on which to execute the tests. Default `"Testim-Grid"`. + +### `suite` + +The test suite to run. + +### `base-url` + +Starting URL after browser opens. ## Example usage ```bash -uses: instinctstudios/testim-cli-gh-action@v0.3.0 +uses: trax-retail/testim-cli-gh-action@v0.7.0 with: token: ${{ secrets.TESTIM_TOKEN }} - project-id: + project: ``` \ No newline at end of file diff --git a/action.yml b/action.yml index 16efc02..690967c 100644 --- a/action.yml +++ b/action.yml @@ -14,7 +14,10 @@ inputs: default: "Testim-Grid" suite: description: 'The test suite to run' - required: true + required: false + base-url: + description: 'Starting URL after browser opens' + required: false runs: using: 'docker' image: 'Dockerfile' @@ -22,4 +25,5 @@ runs: - ${{ inputs.token }} - ${{ inputs.project }} - ${{ inputs.grid }} - - ${{ inputs.suite }} \ No newline at end of file + - ${{ inputs.suite }} + - ${{ inputs.base-url }} \ No newline at end of file diff --git a/entrypoint.sh b/entrypoint.sh index 567690f..f4aa270 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,2 +1,2 @@ #!/bin/bash -testim --token $1 --project $2 --grid $3 -r testim-report.xml --suite $4 \ No newline at end of file +testim --token $1 --project $2 --grid $3 -r testim-report.xml ${4:+--suite $4} ${5:+--base-url $5} \ No newline at end of file