From aff21483fbc68ae6a91fca484ff5d619d3127779 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20=C5=81askawiec?= <127106270+denis-lncd@users.noreply.github.com> Date: Wed, 11 Dec 2024 15:00:00 +0100 Subject: [PATCH 01/11] Create leancode_app_rating-test.yaml --- .../workflows/leancode_app_rating-test.yaml | 66 +++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 .github/workflows/leancode_app_rating-test.yaml diff --git a/.github/workflows/leancode_app_rating-test.yaml b/.github/workflows/leancode_app_rating-test.yaml new file mode 100644 index 0000000..27fde21 --- /dev/null +++ b/.github/workflows/leancode_app_rating-test.yaml @@ -0,0 +1,66 @@ +name: leancode_app_rating test + +on: + push: + branches: [main] + tags-ignore: ['leancode_app_rating-v*'] + paths: + - 'mobile/**' + pull_request: + branches: [main] + paths: + - 'mobile/**' + +jobs: + test: + name: Flutter ${{ matrix.channel }}${{ matrix.version }} + + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + include: + - version: 3.19.x + + defaults: + run: + working-directory: mobile + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup Flutter + uses: subosito/flutter-action@v1 + with: + channel: ${{ matrix.channel }} + flutter-version: ${{ matrix.version }} + + - name: Flutter version + run: flutter --version + + - name: Cache pub dependencies + uses: actions/cache@v2 + with: + path: ${{ env.FLUTTER_HOME }}/.pub-cache + key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }} + restore-keys: ${{ runner.os }}-pub- + + - name: Download pub dependencies + run: flutter pub get + + - name: Run analyzer + run: | + flutter analyze + dart run custom_lint + + - name: Run tests with coverage + run: flutter test --coverage + + - name: Dry run pub publish + # We don't want it to fail the CI, it's just to see how would `pub publish` behave. + run: flutter pub publish --dry-run || true + + - uses: codecov/codecov-action@v1 + with: + flags: leancode_hooks From 6e69ed368b1ef8201d1231386f374ffe31a27819 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20=C5=81askawiec?= <127106270+denis-lncd@users.noreply.github.com> Date: Wed, 11 Dec 2024 15:02:00 +0100 Subject: [PATCH 02/11] Rename leancode_app_rating-test.yaml to leancode_app_rating-test.yml --- ...leancode_app_rating-test.yaml => leancode_app_rating-test.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{leancode_app_rating-test.yaml => leancode_app_rating-test.yml} (100%) diff --git a/.github/workflows/leancode_app_rating-test.yaml b/.github/workflows/leancode_app_rating-test.yml similarity index 100% rename from .github/workflows/leancode_app_rating-test.yaml rename to .github/workflows/leancode_app_rating-test.yml From a670394a9bd0376021fbb4bbf2010183bd8f2310 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20=C5=81askawiec?= <127106270+denis-lncd@users.noreply.github.com> Date: Wed, 11 Dec 2024 15:39:20 +0100 Subject: [PATCH 03/11] Update leancode_app_rating-test.yml --- .github/workflows/leancode_app_rating-test.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/leancode_app_rating-test.yml b/.github/workflows/leancode_app_rating-test.yml index 27fde21..fa34d75 100644 --- a/.github/workflows/leancode_app_rating-test.yml +++ b/.github/workflows/leancode_app_rating-test.yml @@ -28,24 +28,22 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Flutter - uses: subosito/flutter-action@v1 + uses: subosito/flutter-action@v2 with: channel: ${{ matrix.channel }} + cache: true + cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:" + cache-path: "${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:" + pub-cache-key: "flutter-pub:os:-:channel:-:version:-:arch:-:hash:" + pub-cache-path: "${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:" flutter-version: ${{ matrix.version }} - name: Flutter version run: flutter --version - - name: Cache pub dependencies - uses: actions/cache@v2 - with: - path: ${{ env.FLUTTER_HOME }}/.pub-cache - key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }} - restore-keys: ${{ runner.os }}-pub- - - name: Download pub dependencies run: flutter pub get From fe216731822c91d9cd394d4e87fc209669e3207c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20=C5=81askawiec?= <127106270+denis-lncd@users.noreply.github.com> Date: Wed, 11 Dec 2024 15:41:26 +0100 Subject: [PATCH 04/11] Update leancode_app_rating-test.yml --- .github/workflows/leancode_app_rating-test.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/leancode_app_rating-test.yml b/.github/workflows/leancode_app_rating-test.yml index fa34d75..5754ba5 100644 --- a/.github/workflows/leancode_app_rating-test.yml +++ b/.github/workflows/leancode_app_rating-test.yml @@ -35,10 +35,6 @@ jobs: with: channel: ${{ matrix.channel }} cache: true - cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:" - cache-path: "${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:" - pub-cache-key: "flutter-pub:os:-:channel:-:version:-:arch:-:hash:" - pub-cache-path: "${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:" flutter-version: ${{ matrix.version }} - name: Flutter version From fb376e745d6eafa0b8ccd9213cbc4627c37a5442 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20=C5=81askawiec?= <127106270+denis-lncd@users.noreply.github.com> Date: Wed, 11 Dec 2024 15:49:01 +0100 Subject: [PATCH 05/11] Update flutter version --- .github/workflows/leancode_app_rating-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/leancode_app_rating-test.yml b/.github/workflows/leancode_app_rating-test.yml index 5754ba5..afac068 100644 --- a/.github/workflows/leancode_app_rating-test.yml +++ b/.github/workflows/leancode_app_rating-test.yml @@ -20,7 +20,7 @@ jobs: fail-fast: false matrix: include: - - version: 3.19.x + - version: 3.24.x defaults: run: From c202756eac25bcf5e29da0dabef220205413d00c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20=C5=81askawiec?= <127106270+denis-lncd@users.noreply.github.com> Date: Wed, 11 Dec 2024 16:02:47 +0100 Subject: [PATCH 06/11] Update README.md --- mobile/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mobile/README.md b/mobile/README.md index afb5b4d..b0344e0 100644 --- a/mobile/README.md +++ b/mobile/README.md @@ -73,4 +73,5 @@ The showStarDialog function displays a dialog box allowing the user to provide a In the current version of this package, you're not able to have a strong impact on how the dialogs look and how the flow works. You can apply your own texts and labels into `showStarDialog` and `showSingleAnswerDialog` methods. But at this moment, that's it. [pub-badge]: https://img.shields.io/pub/v/leancode_app_rating.svg?logo=dart -[pub-badge-link]: https://pub.dev/packages/leancode_app_rating \ No newline at end of file + +[pub-badge-link]: https://pub.dev/packages/leancode_app_rating From 49f098dafaeca2d0df9bb4f14b048d6ac252e9d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20=C5=81askawiec?= <127106270+denis-lncd@users.noreply.github.com> Date: Wed, 11 Dec 2024 16:08:03 +0100 Subject: [PATCH 07/11] Update leancode_app_rating-test.yml --- .github/workflows/leancode_app_rating-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/leancode_app_rating-test.yml b/.github/workflows/leancode_app_rating-test.yml index afac068..e0af22e 100644 --- a/.github/workflows/leancode_app_rating-test.yml +++ b/.github/workflows/leancode_app_rating-test.yml @@ -57,4 +57,4 @@ jobs: - uses: codecov/codecov-action@v1 with: - flags: leancode_hooks + flags: leancode_app_rating From e6017e6d0e72bc2f17c8bfb8614d449db5abde8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20=C5=81askawiec?= <127106270+denis-lncd@users.noreply.github.com> Date: Wed, 11 Dec 2024 16:12:58 +0100 Subject: [PATCH 08/11] Update leancode_app_rating-test.yml --- .github/workflows/leancode_app_rating-test.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/leancode_app_rating-test.yml b/.github/workflows/leancode_app_rating-test.yml index e0af22e..248b9d3 100644 --- a/.github/workflows/leancode_app_rating-test.yml +++ b/.github/workflows/leancode_app_rating-test.yml @@ -46,7 +46,6 @@ jobs: - name: Run analyzer run: | flutter analyze - dart run custom_lint - name: Run tests with coverage run: flutter test --coverage From 2cbe0ad811ba5c6420a369e8d401cdcbcdc83c75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20=C5=81askawiec?= <127106270+denis-lncd@users.noreply.github.com> Date: Wed, 11 Dec 2024 16:18:31 +0100 Subject: [PATCH 09/11] Update leancode_app_rating-test.yml --- .github/workflows/leancode_app_rating-test.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/leancode_app_rating-test.yml b/.github/workflows/leancode_app_rating-test.yml index 248b9d3..0952188 100644 --- a/.github/workflows/leancode_app_rating-test.yml +++ b/.github/workflows/leancode_app_rating-test.yml @@ -47,9 +47,6 @@ jobs: run: | flutter analyze - - name: Run tests with coverage - run: flutter test --coverage - - name: Dry run pub publish # We don't want it to fail the CI, it's just to see how would `pub publish` behave. run: flutter pub publish --dry-run || true From 696efb04c1d5a3b93e6191999a507e26e394efbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20=C5=81askawiec?= <127106270+denis-lncd@users.noreply.github.com> Date: Wed, 18 Dec 2024 16:05:11 +0100 Subject: [PATCH 10/11] Create leancode_app_rating-publish.yml --- .../workflows/leancode_app_rating-publish.yml | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/leancode_app_rating-publish.yml diff --git a/.github/workflows/leancode_app_rating-publish.yml b/.github/workflows/leancode_app_rating-publish.yml new file mode 100644 index 0000000..632ffe2 --- /dev/null +++ b/.github/workflows/leancode_app_rating-publish.yml @@ -0,0 +1,38 @@ +name: leancode_app_rating publish + +on: + push: + tags: ['leancode_app_rating-v*'] + +jobs: + publish: + name: Publish to pub.dev + + runs-on: ubuntu-latest + + permissions: + id-token: write + + defaults: + run: + working-directory: mobile + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Dart + uses: dart-lang/setup-dart@v1 + with: + sdk: 3.3 + + - name: Set up Flutter + uses: subosito/flutter-action@v2 + with: + flutter-version: 3.24.x + cache: true + + - name: Publish and release + uses: leancodepl/mobile-tools/.github/actions/pub-release@pub-release-v1 + with: + path: mobile From d743afe434474878186c744927e326aa534ad3a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20=C5=81askawiec?= <127106270+denis-lncd@users.noreply.github.com> Date: Wed, 18 Dec 2024 16:11:22 +0100 Subject: [PATCH 11/11] Update leancode_app_rating-publish.yml --- .github/workflows/leancode_app_rating-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/leancode_app_rating-publish.yml b/.github/workflows/leancode_app_rating-publish.yml index 632ffe2..5df365f 100644 --- a/.github/workflows/leancode_app_rating-publish.yml +++ b/.github/workflows/leancode_app_rating-publish.yml @@ -24,7 +24,7 @@ jobs: - name: Set up Dart uses: dart-lang/setup-dart@v1 with: - sdk: 3.3 + sdk: 3.5.3 - name: Set up Flutter uses: subosito/flutter-action@v2