Skip to content

Commit

Permalink
[fix]: i hope it fixes tests
Browse files Browse the repository at this point in the history
  • Loading branch information
F0x1d committed Jul 6, 2024
1 parent 5b6e97d commit 0af71b0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,13 @@ jobs:
- name: Build APK
run: bash ./gradlew assembleRelease --stacktrace --no-daemon

- name: Upload signed APK
- name: Upload APK
uses: actions/upload-artifact@v4
with:
name: logfox.apk
name: logfox-release
compression-level: 0
path: app/build/outputs/apk/release/app-release.apk

- name: Move APK
run: bash mv app/build/outputs/apk/release/app-release.apk .

- uses: actions/cache/save@v4
with:
path: app-release.apk
key: cache-${{ github.sha }}

send:
name: Send APK
runs-on: ubuntu-latest
Expand All @@ -58,18 +50,18 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- uses: actions/cache/restore@v4
- name: Download APK
uses: actions/download-artifact@v4
with:
path: app-release.apk
key: cache-${{ github.sha }}
name: logfox-release

- name: Send APK to Telegram
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
format: markdown
document: app-release.apk
document: logfox-release/app-release.apk
disable_web_page_preview: true
message: |
*${{ github.actor }}* committed to *${{ github.repository }}*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ abstract class ScreenshotTestOf {
content: @Composable () -> Unit,
) {
composeRule.setContent { content() }

composeRule.actions()
composeRule.waitForIdle()

composeRule.whatToCapture().captureRoboImage()
}
Expand Down

0 comments on commit 0af71b0

Please sign in to comment.