Use custom test spec for benchmark on AWS Device Farm (#1951)

This commit is contained in:
Bart Louwers
2023-12-12 17:58:28 +01:00
committed by GitHub
parent 1439a6516a
commit dda4e4043c
4 changed files with 11 additions and 5 deletions

View File

@@ -40,6 +40,9 @@ inputs:
AWS_DEVICE_FARM_DEVICE_POOL_ARN:
description: "AWS_DEVICE_FARM_DEVICE_POOL_ARN"
required: true
testSpecArn:
description: "ARN of test spec"
required: false
runs:
using: "composite"
steps:
@@ -111,7 +114,7 @@ runs:
--name "MapLibre Native ${{ matrix.test.name }}" \
--app-arn ${{ env.app_arn }} \
--device-pool-arn ${{ inputs.AWS_DEVICE_FARM_DEVICE_POOL_ARN }} \
--test type=${{ inputs.testType }},testPackageArn=${{ env.test_package_arn }}${{ inputs.testFilter && ',filter=' }}${{ inputs.testFilter }} \
--test type=${{ inputs.testType }},testPackageArn=${{ env.test_package_arn }}${{ inputs.testFilter && ',filter=' }}${{ inputs.testFilter }}${{ inputs.testSpecArn && ',testSpecArn=' }}${{ inputs.testSpecArn }} \
${{ inputs.externalData && '--configuration extraDataPackageArn=' }}${{ inputs.externalData }} \
--output text --query "run.arn")"