Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a smoke test for android too #206

Merged
merged 1 commit into from
May 27, 2024
Merged
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
24 changes: 22 additions & 2 deletions .github/workflows/smoke_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
- ready_for_review
workflow_dispatch:
jobs:
smoke-tests:
smoke-test:
if: github.event.pull_request.draft == false
strategy:
matrix:
Expand All @@ -28,6 +28,26 @@ jobs:
channel: stable
flutter-version: ${{ steps.flutter-version.outputs.version }}
cache: true
- run: flutter --version
- run: flutter config --no-analytics
- run: flutter pub get
- run: flutter test test/smoke_test.dart
smoke-build-android:
# for android we only validate the build process, running is too complicated
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 17
- run: echo "version=$(cat .flutter-version)" >> $GITHUB_OUTPUT
id: flutter-version
- uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version: ${{ steps.flutter-version.outputs.version }}
cache: true
- run: flutter config --no-analytics
- run: flutter pub get
- run: flutter build apk