Sure,
I started out with using the Github Action’s example using the GIthub Action made by Katalon. But i couldn’t get that to work so i used the docker image instead:
name: CI Engine
on:
workflow_call:
inputs:
config-path:
required: true
type: string
secrets:
KATALON_PERSONAL_ACCESS_TOKEN:
required: true
KATALON_API_KEY:
required: true
jobs:
run-test-collections:
runs-on: ubuntu-latest
env:
RUN_PATH: "Test Suites/Initial Setup"
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
repository: <repo>/katalon
token: ${{ secrets.KATALON_PERSONAL_ACCESS_TOKEN }}
- uses: actions/labeler@v4
with:
repo-token: ${{ secrets.KATALON_PERSONAL_ACCESS_TOKEN }}
configuration-path: ${{ inputs.config-path }}
- name: Docker Pull Katalon
run: docker pull katalonstudio/katalon:latest
- name: Run Docker
run: |
docker run -t --rm -v "$(pwd):/katalon/katalon/source" katalonstudio/katalon katalonc.sh -noSplash -runMode=console -projectPath="/katalon/katalon/source/katalon-project.prj" -retry=1 -retryStrategy=allExecutions -testSuiteCollectionPath="${{ env.RUN_PATH }}" -browserType="TestCloud" -testcloudEnvironmentId="${redacted}" -testcloudTunnel="false" -executionProfile="default" -apiKey="${{ secrets.KATALON_API_KEY }}" -orgID=${redacted} -testOpsProjectId=${redacted} --config -proxy.auth.option=NO_PROXY -proxy.system.option=NO_PROXY -proxy.system.applyToDesiredCapabilities=true -webui.autoUpdateDrivers=true
I have removed some personal information redacted
The github action as shown in the documentation, gives the same error with Testcloud license missing, and if a Testcloud is needed then that makes sense, since i don’t have one.