From b3ebc9999d20755d2d8dd431f50bc76bd59eb367 Mon Sep 17 00:00:00 2001 From: Marco Date: Sun, 28 Aug 2022 20:43:12 +0800 Subject: [PATCH 1/5] build lelantus .so in workflow --- .github/workflows/test.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 9b8123f7f..44d5032c5 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -13,6 +13,10 @@ jobs: uses: subosito/flutter-action@v2 - name: Checkout submodules run: git submodule update --init --recursive + - name: Build Lelantus + run: | + cd crypto_plugins/flutter_liblelantus/scripts/linux/ + ./build_all.sh - name: Get dependencies run: flutter pub get - name: Create temp files From 2fde8e5573595825dc07c955faf926e2cb7a7697 Mon Sep 17 00:00:00 2001 From: Marco Date: Sun, 28 Aug 2022 21:06:19 +0800 Subject: [PATCH 2/5] add codecov --- .github/workflows/test.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 44d5032c5..83836058c 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -62,7 +62,12 @@ jobs: # - name: Analyze # run: flutter analyze - name: Test - run: flutter test + run: flutter test --coverage + - name: Upload to code coverage + uses: codecov/codecov-action@v1.2.2 + with: + token: ${{secrets.CODECOV_TOKEN}} + file: coverage/lcov.info - name: Delete temp files run: | Remove-Item -Path $env:CHANGE_NOW; From 0a0b14cdadca98cbe007c38876c954403cd08d33 Mon Sep 17 00:00:00 2001 From: Marco Date: Sun, 28 Aug 2022 21:22:34 +0800 Subject: [PATCH 3/5] always run coverage upload --- .github/workflows/test.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 83836058c..8bb7d6ca6 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -65,6 +65,7 @@ jobs: run: flutter test --coverage - name: Upload to code coverage uses: codecov/codecov-action@v1.2.2 + if: success() || failure() with: token: ${{secrets.CODECOV_TOKEN}} file: coverage/lcov.info From 88d95ebb1f4451977a7ba316a3eab2f85080bd9a Mon Sep 17 00:00:00 2001 From: Marco Date: Sun, 28 Aug 2022 21:53:21 +0800 Subject: [PATCH 4/5] add coverage badge for main branch --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 559c955eb..458002037 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![codecov](https://codecov.io/gh/cypherstack/stack_wallet/branch/main/graph/badge.svg?token=PM1N56UTEW)](https://codecov.io/gh/cypherstack/stack_wallet) + # Stack Wallet put details here @@ -8,13 +10,14 @@ put features here ## Build and run ### Prerequisites +- Flutter 3.0.5 - Flutter SDK Requirement (>=2.12.0, up until <3.0.0) - Android/iOS dev setup (Android Studio, xCode and subsequent dependencies) After that download the project and init the submodules ``` -git clone https://github.com/cypherstack/Campfire.git -cd Campfire +git clone https://github.com/cypherstack/stack_wallet.git +cd stack_wallet git submodule update --init --recursive ``` From 3b95b086da3138f69d7e042f4328b287a51a0295 Mon Sep 17 00:00:00 2001 From: Marco Date: Sun, 28 Aug 2022 21:57:18 +0800 Subject: [PATCH 5/5] only pull requests --- .github/workflows/test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 8bb7d6ca6..f424aa07c 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,5 +1,5 @@ name: Test -on: [push, pull_request] +on: [pull_request] jobs: test: runs-on: ubuntu-20.04