Skip to content

Commit 4a05840

Browse files
authored
Merge pull request #3 from qawolf/gen-250-support-needed-for-customer-calls-about-apk-file-updates
update readme example
2 parents ecab691 + 1e99635 commit 4a05840

File tree

1 file changed

+53
-34
lines changed

1 file changed

+53
-34
lines changed

README.md

Lines changed: 53 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ Fastlane plugin for QA Wolf integration.
1515

1616
Uploads build artifacts (IPA, APK, or AAB) to QA Wolf storage for automated testing. Optionally triggers a test run on QA Wolf.
1717

18+
> [!CAUTION]
19+
> To ensure QA Wolf tests target the correct app build and help debugging issues, we require uploaded filenames to be unique in some way. The example below uses the git commit hash, but you can use another unique identifier such as the app version number if you wish.
20+
1821
> [!IMPORTANT]
1922
> Testing iOS apps (IPA) on QA Wolf is not yet available.
2023
@@ -24,40 +27,56 @@ Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plu
2427

2528
```ruby
2629
lane :build do
27-
# Step 1: Build your app
28-
# Ensure the APK/AAB file has been created. Your use case may vary.
29-
gradle
30-
31-
# Step 2: Upload the artifact to QA Wolf
32-
upload_to_qawolf(
33-
# Must be set or available as env var QAWOLF_API_KEY
34-
qawolf_api_key: "qawolf_...",
35-
36-
# only set this if you have not built the artifact in the same lane
37-
# e.g. via gradle or similar, check official Fastlane docs for details
38-
file_path: "./build/app-bundle.apk"
39-
)
40-
41-
# Step 3: Trigger a test run on QA Wolf
42-
# optional, only use when deployment triggers are enabled in QA Wolf
43-
notify_deploy_qawolf(
44-
# Must be set or available as env var QAWOLF_API_KEY
45-
qawolf_api_key: "qawolf_...",
46-
47-
# These fields are dependent on how triggers are setup within QA Wolf.
48-
# Reach out to support for help. All fields are optional.
49-
branch: nil,
50-
commit_url: nil,
51-
deduplication_key: nil,
52-
deployment_type: nil,
53-
deployment_url: nil,
54-
hosting_service: nil,
55-
sha: nil,
56-
variables: nil,
57-
58-
# Only set this if your lane does not include `upload_to_qawolf`
59-
run_input_path: nil,
60-
)
30+
# The uploaded filename must be unique for your team on the QA Wolf platform.
31+
# One way to achieve that is to rely on the git commit hash.
32+
# Feel free to use a different mechanism if desired (e.g. app version).
33+
# See https://docs.fastlane.tools/actions/#source-control for other source control actions
34+
ensure_git_status_clean
35+
commit = last_git_commit
36+
37+
# Build your app
38+
# Ensure the APK/AAB file has been created. Your use case may vary.
39+
# Check Fastlane's docs for alternative build methods.
40+
gradle(
41+
task: "assemble",
42+
build_type: "Release",
43+
)
44+
45+
# Upload the artifact to QA Wolf
46+
upload_to_qawolf(
47+
# Must be set or available as env var QAWOLF_API_KEY
48+
qawolf_api_key: "qawolf_...",
49+
50+
# You can omit this if your gradle build outputs the file with a unique filename.
51+
# If not, you'll want to do something like the following.
52+
# Make sure you use the right file extension!
53+
filename: "app_#{commit[:abbreviated_commit_hash]}.apk"
54+
55+
# Only set this if you have not built the artifact in the same lane,
56+
# e.g. via gradle or similar, check official Fastlane docs for details.
57+
file_path: "./build/app-bundle.apk",
58+
)
59+
60+
# Trigger a test run on QA Wolf
61+
# Optional, only use when deployment triggers are enabled in QA Wolf
62+
notify_deploy_qawolf(
63+
# Must be set or available as env var QAWOLF_API_KEY
64+
qawolf_api_key: "qawolf_...",
65+
66+
# These fields are dependent on how triggers are setup within QA Wolf.
67+
# Reach out to support for help. All fields are optional.
68+
branch: nil,
69+
commit_url: nil,
70+
deduplication_key: nil,
71+
deployment_type: nil,
72+
deployment_url: nil,
73+
hosting_service: nil,
74+
sha: nil,
75+
variables: nil,
76+
77+
# Only set this if your lane does not include `upload_to_qawolf`
78+
run_input_path: nil,
79+
)
6180
end
6281
```
6382

0 commit comments

Comments
 (0)