From 48c86166ec845f47dd9e641b684d9e48ee2a4caa Mon Sep 17 00:00:00 2001 From: Doan Dinh Date: Mon, 13 Nov 2023 11:06:36 +0700 Subject: [PATCH] [#242] Add danger --- .github/workflows/test.yml | 5 +++++ bricks/template/__brick__/.github/workflows/test.yml | 5 +++++ bricks/template/__brick__/pubspec.yaml | 1 + 3 files changed, 11 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 49da7aff..e983bb7b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -38,6 +38,11 @@ jobs: - name: Statically analyze the Dart code for any errors run: flutter analyze . + - name: Run danger ci + run: danger_dart ci + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Run widget tests, unit tests run: flutter test --machine --coverage diff --git a/bricks/template/__brick__/.github/workflows/test.yml b/bricks/template/__brick__/.github/workflows/test.yml index 0d6df834..6934dce1 100644 --- a/bricks/template/__brick__/.github/workflows/test.yml +++ b/bricks/template/__brick__/.github/workflows/test.yml @@ -36,6 +36,11 @@ jobs: - name: Statically analyze the Dart code for any errors run: flutter analyze . + - name: Run danger ci + run: danger_dart ci + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Run widget tests, unit tests run: flutter test --machine --coverage diff --git a/bricks/template/__brick__/pubspec.yaml b/bricks/template/__brick__/pubspec.yaml index e6558280..dc094acb 100644 --- a/bricks/template/__brick__/pubspec.yaml +++ b/bricks/template/__brick__/pubspec.yaml @@ -60,6 +60,7 @@ dev_dependencies: json_serializable: ^6.6.2 mockito: ^5.4.0 retrofit_generator: ^7.0.0 + danger_core: # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec