From 9c33d8b21520b67e20e7d34c4c9ebe4a57d09a8d Mon Sep 17 00:00:00 2001 From: Landon Date: Thu, 9 Jan 2025 18:27:50 -0700 Subject: [PATCH 1/3] update: adding MIT license --- LICENSE.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 LICENSE.md diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..552cc06 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2025 Grey Labs, LLC + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file From ce165356c6f81186e1e01b9e28207456968db106 Mon Sep 17 00:00:00 2001 From: Landon Date: Thu, 9 Jan 2025 18:28:44 -0700 Subject: [PATCH 2/3] update: adding root urls as params --- README.md | 10 ++++++---- action.yml | 20 +++++++++++++++----- entrypoint.sh | 12 ++++++------ 3 files changed, 27 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 259a12d..57e713c 100644 --- a/README.md +++ b/README.md @@ -7,20 +7,22 @@ This action lets you run a Test, Case, or Flow for a specific Site from your [Cu | key | description | required | default | | --- | --- | --- | --- | -| `api-token` | Your API Token found in your [Cursion account](https://app.cursion.dev/account) | **YES** | `None` | -| `run-type` | The type of run: `test`, `case`, or `flow` | **YES** | `test` | +| `token` | Your API Token found in your [Cursion account](https://app.cursion.dev/account) | **YES** | `None` | +| `type` | The type of run: `test`, `case`, or `flow` | **YES** | `test` | | `site-id` | `ID` of the `Site` you want to run against | **YES** | `None` | | `case-id` | `ID` of the `Case` you want to run | **NO** | `None` | | `flow-id` | `ID` of the `Flow` you want to run | **NO** | `None` | | `updates` | Values to update for a `Case`. (e.g. `step-1: step-2:`)| **NO** | `None` | +| `api-root` | Your custom API root url | **NO** | `https://api.cursion.dev` | +| `client-root` | Your custom Client root url | **NO** | `https://app.cursion.dev` | ## Example usage ``` yml uses: actions/cursion-runner@v0.0.5 with: - api-token: ${{ secrets.CURSION_API_TOKEN }} - run-type: 'flow' + token: ${{ secrets.CURSION_API_TOKEN }} + type: 'flow' site-id: flow-id: ``` \ No newline at end of file diff --git a/action.yml b/action.yml index ad68dc2..c2bb4bd 100644 --- a/action.yml +++ b/action.yml @@ -5,11 +5,11 @@ branding: icon: 'chevron-right' color: 'blue' inputs: - api-token: # API token + token: # api token description: 'API token from your Cursion account' required: true default: '' - run-type: # type of run to execute + type: # type of run to execute description: 'test, case, or flow' required: true default: 'test' @@ -29,13 +29,23 @@ inputs: description: 'step-1: step-2:' required: false default: '' + api-root: # custom api root + description: 'Your custom API root url' + required: false + default: 'https://api.cursion.dev' + client-root: # custom client root + description: 'Your custom Client root url' + required: false + default: 'https://app.cursion.dev' runs: using: 'docker' image: 'Dockerfile' args: - - ${{ inputs.api-token }} - - ${{ inputs.run-type }} + - ${{ inputs.token }} + - ${{ inputs.type }} - ${{ inputs.site-id }} - ${{ inputs.case-id }} - ${{ inputs.flow-id }} - - ${{ inputs.updates }} \ No newline at end of file + - ${{ inputs.updates }} + - ${{ inputs.api-root }} + - ${{ inputs.client-root }} \ No newline at end of file diff --git a/entrypoint.sh b/entrypoint.sh index 0569bd1..4d082b0 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,21 +1,21 @@ #!/bin/bash -# run test-site +# test-site if [[ $2 == *"test"* ]] then { - cursion test-site $3 --api-key=$1 + cursion test-site $3 --api-key=$1 --api-root=$7 --client-root=$8 } || { echo "Test Failed" && exit 1 } fi -# run run-case +# run-case if [[ $2 == *"case"* ]] then { - cursion run-case $3 $4 --api-key=$1 $6 + cursion run-case $3 $4 --api-key=$1 --api-root=$7 --client-root=$8 $6 } || { echo "Case Failed" && exit 1 @@ -23,11 +23,11 @@ if [[ $2 == *"case"* ]] fi -# run run-flow +# run-flow if [[ $2 == *"flow"* ]] then { - cursion run-flow $3 $5 --api-key=$1 + cursion run-flow $3 $5 --api-key=$1 --api-root=$7 --client-root=$8 } || { echo "Flow Failed" && exit 1 From a37b13b496c0af83ee823b0205e654e4723f08d1 Mon Sep 17 00:00:00 2001 From: Landon Date: Wed, 21 Jan 2026 11:30:17 -0700 Subject: [PATCH 3/3] update: date for new year --- LICENSE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE.md b/LICENSE.md index 552cc06..108c026 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2025 Grey Labs, LLC +Copyright (c) 2026 Grey Labs, LLC Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in