|
21 | 21 | ALLURE_TOKEN: ${{ secrets.ALLURE_TOKEN }} |
22 | 22 |
|
23 | 23 | jobs: |
24 | | - # android: |
25 | | - # runs-on: ubuntu-latest |
26 | | - # steps: |
27 | | - # - uses: actions/checkout@v6 |
| 24 | + android: |
| 25 | + runs-on: ubuntu-latest |
| 26 | + steps: |
| 27 | + - uses: actions/checkout@v6 |
| 28 | + |
| 29 | + - uses: ./.github/actions/setup-java |
28 | 30 |
|
29 | | - # - uses: ./.github/actions/setup-java |
| 31 | + - uses: ./.github/actions/cache-gradle |
30 | 32 |
|
31 | | - # - uses: ./.github/actions/cache-gradle |
| 33 | + - uses: ./.github/actions/setup-ruby |
32 | 34 |
|
33 | | - # - uses: ./.github/actions/setup-ruby |
| 35 | + - uses: ./.github/actions/setup-flutter |
34 | 36 |
|
35 | | - # - uses: ./.github/actions/setup-flutter |
| 37 | + - run: cp sample_app/pubspec_overrides.e2e.yaml sample_app/pubspec_overrides.yaml |
36 | 38 |
|
37 | | - # - name: Bootstrap |
38 | | - # run: | |
39 | | - # flutter pub global activate melos |
40 | | - # melos bootstrap |
| 39 | + - name: Bootstrap |
| 40 | + run: | |
| 41 | + flutter pub global activate melos |
| 42 | + melos bootstrap |
41 | 43 |
|
42 | | - # - uses: ./.github/actions/enable-kvm |
| 44 | + - uses: ./.github/actions/enable-kvm |
43 | 45 |
|
44 | | - # - name: Launch Allure TestOps |
45 | | - # run: cd sample_app/android && bundle exec fastlane allure_launch |
46 | | - # env: |
47 | | - # GITHUB_EVENT: ${{ toJson(github.event) }} |
| 46 | + - name: Launch Allure TestOps |
| 47 | + run: cd sample_app/android && bundle exec fastlane allure_launch |
| 48 | + env: |
| 49 | + GITHUB_EVENT: ${{ toJson(github.event) }} |
48 | 50 |
|
49 | | - # - name: Run e2e (Android emulator) |
50 | | - # uses: reactivecircus/android-emulator-runner@v2 |
51 | | - # with: |
52 | | - # api-level: ${{ env.android_api_level }} |
53 | | - # arch: x86_64 |
54 | | - # profile: pixel_6 |
55 | | - # script: cd sample_app/android && bundle exec fastlane run_e2e_test device:emulator-5554 |
| 51 | + - name: Run e2e (Android emulator) |
| 52 | + uses: reactivecircus/android-emulator-runner@v2 |
| 53 | + with: |
| 54 | + api-level: ${{ env.android_api_level }} |
| 55 | + arch: x86_64 |
| 56 | + profile: pixel_6 |
| 57 | + script: cd sample_app/android && bundle exec fastlane run_e2e_test device:emulator-5554 |
56 | 58 |
|
57 | | - # - name: Upload Allure results |
58 | | - # if: env.ALLURE_LAUNCH_ID != '' && (success() || failure()) |
59 | | - # run: cd sample_app/android && bundle exec fastlane allure_upload |
| 59 | + - name: Upload Allure results |
| 60 | + if: env.ALLURE_LAUNCH_ID != '' && (success() || failure()) |
| 61 | + run: cd sample_app/android && bundle exec fastlane allure_upload |
60 | 62 |
|
61 | | - # - name: Allure TestOps Launch Removal |
62 | | - # if: env.ALLURE_LAUNCH_ID != '' && cancelled() |
63 | | - # run: cd sample_app/android && bundle exec fastlane allure_launch_removal launch_id:$ALLURE_LAUNCH_ID |
| 63 | + - name: Allure TestOps Launch Removal |
| 64 | + if: env.ALLURE_LAUNCH_ID != '' && cancelled() |
| 65 | + run: cd sample_app/android && bundle exec fastlane allure_launch_removal launch_id:$ALLURE_LAUNCH_ID |
64 | 66 |
|
65 | | - # - uses: actions/upload-artifact@v7 |
66 | | - # if: failure() |
67 | | - # with: |
68 | | - # name: e2e-android-logs |
69 | | - # path: | |
70 | | - # sample_app/stream-chat-test-mock-server/logs |
71 | | - # sample_app/build/e2e-test.log |
| 67 | + - uses: actions/upload-artifact@v7 |
| 68 | + if: failure() |
| 69 | + with: |
| 70 | + name: e2e-android-logs |
| 71 | + path: | |
| 72 | + sample_app/stream-chat-test-mock-server/logs |
| 73 | + sample_app/build/e2e-test.log |
72 | 74 |
|
73 | 75 | ios: |
74 | 76 | runs-on: macos-15 |
|
81 | 83 |
|
82 | 84 | - uses: ./.github/actions/setup-ruby |
83 | 85 |
|
| 86 | + - run: cp sample_app/pubspec_overrides.e2e.yaml sample_app/pubspec_overrides.yaml |
| 87 | + |
84 | 88 | - name: Bootstrap |
85 | 89 | run: | |
86 | 90 | flutter precache --ios |
|
0 commit comments