realm / aws-devicefarm

Github action for triggering runs on AWS devicefarm
MIT License
17 stars 10 forks source link

On schedule run - allow for extra configuration to be passed in #13

Open jamie-wearsafe opened 1 year ago

jamie-wearsafe commented 1 year ago

In my case I need to be able to specify device configuration: deviceSelectionConfiguration

          DEVICE_CONFIG="billingMethod=UNMETERED,radios={wifi=true,bluetooth=true,nfc=true,gps=true}"
          # Device configuration
          if [[ -f "data_arn.txt" ]]; then
            DEVICE_CONFIG="${DEVICE_CONFIG},extraDataPackageArn=$(cat data_arn.txt)"
          fi
          # Execution configuration
          EXEC_CONFIG="jobTimeoutMinutes=${TIMEOUT},videoCapture=true"

and using it like:

# aws devicefarm schedule-run \
          #  --project-arn "${PROJECT}" \
          #  --device-pool-arn "${DEVICE_POOL}" \
          #  --name "${NAME}" \
          #  --test "${TEST}" \
          #  --configuration "${DEVICE_CONFIG}" \
          #  --execution-configuration "${EXEC_CONFIG}" \
          #  --app-arn "$(cat app_arn.txt)")

I can see these parts were left off the action inputs.

If I can i'll make a PR.