Async Execution
Basic Usage
dcd cloud --apiKey <apiKey> <appFile> <flowFile> --asyncdcd cloud --apiKey <apiKey> <appFile> <flowFile> --async --name "build-$GIT_SHA"Checking Results After an Async Run
dcd status --apiKey <apiKey> <uploadId>GitHub Actions Pattern
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Build app
run: ./gradlew assembleDebug
# Start tests immediately — don't wait for results
- uses: devicecloud-dev/device-cloud-for-maestro@v2
id: dcd
with:
api-key: ${{ secrets.DCD_API_KEY }}
app-file: app/build/outputs/apk/debug/app-debug.apk
async: true
name: ${{ github.sha }}
# Continue with other CI work while tests run in the background
- name: Run unit tests
run: ./gradlew test
# Check test results at the end
- name: Verify DeviceCloud status
run: |
echo "Test results: ${{ steps.dcd.outputs.DEVICE_CLOUD_UPLOAD_STATUS }}"
echo "View at: ${{ steps.dcd.outputs.DEVICE_CLOUD_CONSOLE_URL }}"Considerations
Last updated