Skip to content

Commit

Permalink
Include base-url argument
Browse files Browse the repository at this point in the history
- Make suite argument optional
- Update readme
  • Loading branch information
vicfergar committed Nov 22, 2021
1 parent 776599a commit 708d2bd
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_ID>
project: <PROJECT_ID>
```
8 changes: 6 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,16 @@ 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'
args:
- ${{ inputs.token }}
- ${{ inputs.project }}
- ${{ inputs.grid }}
- ${{ inputs.suite }}
- ${{ inputs.suite }}
- ${{ inputs.base-url }}
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
testim --token $1 --project $2 --grid $3 -r testim-report.xml --suite $4
testim --token $1 --project $2 --grid $3 -r testim-report.xml ${4:+--suite $4} ${5:+--base-url $5}

0 comments on commit 708d2bd

Please sign in to comment.