fix: download files in any case, correct handling of ignoreTestFailur… #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "CI Workflow" | |
on: | |
workflow_dispatch: | |
pull_request: | |
jobs: | |
check_simple_android: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Run tests | |
uses: ./ | |
with: | |
apiKey: ${{ secrets.MARATHON_CLOUD_API_TOKEN }} | |
application: "example/app.apk" | |
testApplication: "example/appTest.apk" | |
platform: android | |
name: "android_3_0" | |
version: "1.0.30" | |
check_output_android: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Run tests | |
uses: ./ | |
with: | |
apiKey: ${{ secrets.MARATHON_CLOUD_API_TOKEN }} | |
application: "example/app.apk" | |
testApplication: "example/appTest.apk" | |
platform: android | |
name: "android_3_0" | |
output: "output" | |
version: "1.0.30" | |
- name: Check if output folder exists and is not empty | |
run: | | |
if [ -d "output" ] && [ "$(ls -A output)" ]; then | |
echo "Output folder exists and is not empty." | |
else | |
echo "Output folder does not exist or is empty." | |
exit 1 | |
fi | |
- name: Upload artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: output_android | |
path: output | |
check_failed_android: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Run tests | |
uses: ./ | |
with: | |
apiKey: ${{ secrets.MARATHON_CLOUD_API_TOKEN }} | |
application: "example/app.apk" | |
testApplication: "example/appTestFailed.apk" | |
platform: android | |
name: "android_3_0" | |
output: "output" | |
version: "1.0.30" | |
ignoreTestFailures: "true" | |
- name: Check if output folder exists and is not empty | |
run: | | |
if [ -d "output" ] && [ "$(ls -A output)" ]; then | |
echo "Output folder exists and is not empty." | |
else | |
echo "Output folder does not exist or is empty." | |
exit 1 | |
fi | |
- name: Upload artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: output_android | |
path: output | |
check_ios: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Run tests parallel | |
uses: ./ | |
with: | |
apiKey: ${{ secrets.MARATHON_CLOUD_API_TOKEN }} | |
application: "example/sample.zip" | |
testApplication: "example/sampleUITests-Runner.zip" | |
platform: ios | |
name: "ios_3_0" | |
output: "output" | |
version: "1.0.30" | |
- name: Check if output folder exists and is not empty | |
run: | | |
if [ -d "output" ] && [ "$(ls -A output)" ]; then | |
echo "Output folder exists and is not empty." | |
else | |
echo "Output folder does not exist or is empty." | |
exit 1 | |
fi | |
- name: Upload artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: output_ios | |
path: output |