forked from SatoshiPortal/bullbitcoin-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
82 lines (70 loc) · 2.49 KB
/
test.yml
File metadata and controls
82 lines (70 loc) · 2.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: Test
on:
pull_request:
branches:
- main
- develop
jobs:
unit-test:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v5
- name: Install FVM
run: |
curl -fsSL https://fvm.app/install.sh | bash
echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH
- run: make fvm-check
- run: make clean
- run: make deps
- run: make build-runner
- run: make l10n
- name: Create .env file
run: |
echo "TEST_ALICE_MNEMONIC=${{ secrets.ENV_TEST_ALICE_MNEMONIC }}" >> .env
echo "TEST_BOB_MNEMONIC=${{ secrets.ENV_TEST_BOB_MNEMONIC }}" >> .env
- name: Run Unit Tests
run: make unit-test
# android-integration-test:
# runs-on: macos-latest
# steps:
# - uses: actions/checkout@v3
# - uses: flutter-actions/setup-flutter@v4
# - uses: bluefireteam/melos-action@v2
# - uses: dtolnay/rust-toolchain@stable
# with:
# toolchain: stable
# - uses: nttld/setup-ndk@v1
# with:
# ndk-version: r25b
# - uses: actions/setup-java@v3
# with:
# distribution: zulu
# java-version: "21"
# - run: make clean
# - run: make deps
# - run: make build-runner
# - run: make l10n
# - name: Create .env file
# run: |
# echo "TEST_ALICE_MNEMONIC=${{ secrets.ENV_TEST_ALICE_MNEMONIC }}" >> .env
# echo "TEST_BOB_MNEMONIC=${{ secrets.ENV_TEST_BOB_MNEMONIC }}" >> .env
# # - name: Build the binaries
# # run: melos run build:android
# # - name: Copy the binaries to the needed location
# # run: |
# # CURR_VERSION=library_name-v`awk '/^version: /{print $2}' packages/library_name/pubspec.yaml`
# # cp platform-build/android.tar.gz packages/flutter_library_name/android/$CURR_VERSION.tar.gz
# # echo Copied file!
# - name: Run Flutter integration tests
# uses: Wandalen/wretry.action@master # sometimes android tests are flaky
# with:
# attempt_limit: 5
# action: reactivecircus/android-emulator-runner@v2
# with: |
# api-level: 33
# target: google_apis
# arch: x86_64
# ram-size: 1024M
# disk-size: 2048M
# script: cd packages/flutter_library_name/example && flutter test -d `flutter devices | grep android | tr ' ' '\n' | grep emulator-` integration_test