Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
# Runs this action on a public F-Droid APK: once where the text shows, once where it can't.
# Runs this action on a public F-Droid APK: once where the text shows, once where it can't. On a pull request the
# passing run also posts its proof comment and edits it on later pushes (#184), with its own action-selftest key.
name: test
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
pull-requests: write # the proof comment
concurrency: test
jobs:
smoke:
Expand All @@ -21,18 +24,20 @@ jobs:
with:
apk: calculator.apk
wait-for: '='
api-key: ${{ secrets.MOBILESANDBOX_API_KEY }}
api-key: ${{ secrets.MOBILESANDBOX_SELFTEST_KEY }}
- id: fail
uses: ./
continue-on-error: true
with:
apk: calculator.apk
wait-for: Sign in
timeout: 5
api-key: ${{ secrets.MOBILESANDBOX_API_KEY }}
api-key: ${{ secrets.MOBILESANDBOX_SELFTEST_KEY }}
artifact-name: android-smoke-expected-fail
comment: false # the expected failure needs no comment
- run: |
echo "pass: ${{ steps.pass.outputs.result }} ${{ steps.pass.outputs.phone-id }} ${{ steps.pass.outputs.screenshot }}"
echo "fail: ${{ steps.fail.outputs.result }} ${{ steps.fail.outputs.phone-id }}"
echo "comment: ${{ steps.pass.outputs.comment-url }}"
test "${{ steps.pass.outputs.result }}" = pass
test "${{ steps.fail.outputs.result }}" = fail
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ jobs:
> *(the last screen)*<br>
> Tested on Mobilebox

A real one: [the proof comment on this repo's self-test PR](https://github.com/fifteenA/android-smoke-action/pull/2#issuecomment-6808386702).

The screenshot is an image file at an unguessable address on mobilebox.dev, not indexed and not shown anywhere else. It and the comment's line are deleted from Mobilebox after 30 days. Turn the comment off with `comment: false`: then nothing is posted or stored.

<p align="center">
Expand Down
Loading