From 2e1a394637f9da66743e859e72e26fc77f2735ea Mon Sep 17 00:00:00 2001 From: Volodymyr Buberenko Date: Tue, 23 Apr 2024 20:27:18 +0300 Subject: [PATCH] ci(all): Analyze every package individually (#2852) --- .github/workflows/all_plugins.yaml | 22 ------------------- .github/workflows/all_plugins_skipper.yaml | 6 ----- .../workflows/android_alarm_manager_plus.yaml | 22 +++++++++++++++++++ .github/workflows/android_intent_plus.yaml | 22 +++++++++++++++++++ .github/workflows/battery_plus.yaml | 22 +++++++++++++++++++ .github/workflows/connectivity_plus.yaml | 22 +++++++++++++++++++ .github/workflows/device_info_plus.yaml | 22 +++++++++++++++++++ .github/workflows/network_info_plus.yaml | 22 +++++++++++++++++++ .github/workflows/package_info_plus.yaml | 22 +++++++++++++++++++ .github/workflows/sensors_plus.yaml | 22 +++++++++++++++++++ .github/workflows/share_plus.yaml | 22 +++++++++++++++++++ 11 files changed, 198 insertions(+), 28 deletions(-) diff --git a/.github/workflows/all_plugins.yaml b/.github/workflows/all_plugins.yaml index 836b54095f..3b88469c3c 100644 --- a/.github/workflows/all_plugins.yaml +++ b/.github/workflows/all_plugins.yaml @@ -19,28 +19,6 @@ on: - "**.md" jobs: - analyze: - name: "Flutter Analyze" - timeout-minutes: 15 - runs-on: ubuntu-latest - steps: - - name: "Checkout repository" - uses: actions/checkout@v4 - - name: "Install Flutter" - run: ./.github/workflows/scripts/install-flutter.sh stable - - name: "Install Tools" - run: | - ./.github/workflows/scripts/install-tools.sh - - name: "Bootstrap Workspace" - run: melos bootstrap - - name: "Run Dart Analyze" - uses: invertase/github-action-dart-analyzer@v3 - with: - fatal-infos: false - fatal-warnings: true - annotate: true - working-directory: ./packages - pub_dev_publish_check: name: "Check pub.dev requirements" timeout-minutes: 15 diff --git a/.github/workflows/all_plugins_skipper.yaml b/.github/workflows/all_plugins_skipper.yaml index 750ea7b7d7..c397dd20ad 100644 --- a/.github/workflows/all_plugins_skipper.yaml +++ b/.github/workflows/all_plugins_skipper.yaml @@ -12,12 +12,6 @@ on: - "**.md" jobs: - analyze: - name: "Flutter Analyze" - runs-on: ubuntu-latest - steps: - - run: 'echo "No analyze required as only docs or non-plugin files changed"' - check_formatting: name: "Check code formatting" runs-on: ubuntu-latest diff --git a/.github/workflows/android_alarm_manager_plus.yaml b/.github/workflows/android_alarm_manager_plus.yaml index f875d4ae52..c99722f0fd 100644 --- a/.github/workflows/android_alarm_manager_plus.yaml +++ b/.github/workflows/android_alarm_manager_plus.yaml @@ -18,6 +18,28 @@ env: PLUGIN_EXAMPLE_SCOPE: "*android_alarm_manager_plus_example*" jobs: + analyze: + name: "Dart Analyzer" + timeout-minutes: 15 + runs-on: ubuntu-latest + steps: + - name: "Checkout repository" + uses: actions/checkout@v4 + - name: "Install Flutter" + run: ./.github/workflows/scripts/install-flutter.sh stable + - name: "Install Tools" + run: | + ./.github/workflows/scripts/install-tools.sh + - name: "Bootstrap Workspace" + run: melos bootstrap + - name: "Run Dart Analyze" + uses: invertase/github-action-dart-analyzer@v3 + with: + fatal-infos: false + fatal-warnings: true + annotate: true + working-directory: ./packages/android_alarm_manager_plus + android_example_build: runs-on: macos-14 timeout-minutes: 30 diff --git a/.github/workflows/android_intent_plus.yaml b/.github/workflows/android_intent_plus.yaml index bfe79ba30e..ffb61262d7 100644 --- a/.github/workflows/android_intent_plus.yaml +++ b/.github/workflows/android_intent_plus.yaml @@ -18,6 +18,28 @@ env: PLUGIN_EXAMPLE_SCOPE: "*android_intent_example*" jobs: + analyze: + name: "Dart Analyzer" + timeout-minutes: 15 + runs-on: ubuntu-latest + steps: + - name: "Checkout repository" + uses: actions/checkout@v4 + - name: "Install Flutter" + run: ./.github/workflows/scripts/install-flutter.sh stable + - name: "Install Tools" + run: | + ./.github/workflows/scripts/install-tools.sh + - name: "Bootstrap Workspace" + run: melos bootstrap + - name: "Run Dart Analyze" + uses: invertase/github-action-dart-analyzer@v3 + with: + fatal-infos: false + fatal-warnings: true + annotate: true + working-directory: ./packages/android_intent_plus + android_example_build: runs-on: macos-14 timeout-minutes: 30 diff --git a/.github/workflows/battery_plus.yaml b/.github/workflows/battery_plus.yaml index 1f7b198ede..64cb41d984 100644 --- a/.github/workflows/battery_plus.yaml +++ b/.github/workflows/battery_plus.yaml @@ -22,6 +22,28 @@ env: PLUGIN_EXAMPLE_SCOPE: "*battery_plus_example*" jobs: + analyze: + name: "Dart Analyzer" + timeout-minutes: 15 + runs-on: ubuntu-latest + steps: + - name: "Checkout repository" + uses: actions/checkout@v4 + - name: "Install Flutter" + run: ./.github/workflows/scripts/install-flutter.sh stable + - name: "Install Tools" + run: | + ./.github/workflows/scripts/install-tools.sh + - name: "Bootstrap Workspace" + run: melos bootstrap + - name: "Run Dart Analyze" + uses: invertase/github-action-dart-analyzer@v3 + with: + fatal-infos: false + fatal-warnings: true + annotate: true + working-directory: ./packages/battery_plus + android_example_build: runs-on: macos-14 timeout-minutes: 30 diff --git a/.github/workflows/connectivity_plus.yaml b/.github/workflows/connectivity_plus.yaml index 5d52e2155a..d783f3b0ef 100644 --- a/.github/workflows/connectivity_plus.yaml +++ b/.github/workflows/connectivity_plus.yaml @@ -22,6 +22,28 @@ env: PLUGIN_EXAMPLE_SCOPE: "*connectivity_plus_example*" jobs: + analyze: + name: "Dart Analyzer" + timeout-minutes: 15 + runs-on: ubuntu-latest + steps: + - name: "Checkout repository" + uses: actions/checkout@v4 + - name: "Install Flutter" + run: ./.github/workflows/scripts/install-flutter.sh stable + - name: "Install Tools" + run: | + ./.github/workflows/scripts/install-tools.sh + - name: "Bootstrap Workspace" + run: melos bootstrap + - name: "Run Dart Analyze" + uses: invertase/github-action-dart-analyzer@v3 + with: + fatal-infos: false + fatal-warnings: true + annotate: true + working-directory: ./packages/connectivity_plus + android_example_build: runs-on: macos-14 timeout-minutes: 30 diff --git a/.github/workflows/device_info_plus.yaml b/.github/workflows/device_info_plus.yaml index 841879d484..5ea8ddd998 100644 --- a/.github/workflows/device_info_plus.yaml +++ b/.github/workflows/device_info_plus.yaml @@ -22,6 +22,28 @@ env: PLUGIN_EXAMPLE_SCOPE: "*device_info_plus_example*" jobs: + analyze: + name: "Dart Analyzer" + timeout-minutes: 15 + runs-on: ubuntu-latest + steps: + - name: "Checkout repository" + uses: actions/checkout@v4 + - name: "Install Flutter" + run: ./.github/workflows/scripts/install-flutter.sh stable + - name: "Install Tools" + run: | + ./.github/workflows/scripts/install-tools.sh + - name: "Bootstrap Workspace" + run: melos bootstrap + - name: "Run Dart Analyze" + uses: invertase/github-action-dart-analyzer@v3 + with: + fatal-infos: false + fatal-warnings: true + annotate: true + working-directory: ./packages/device_info_plus + android_example_build: runs-on: macos-14 timeout-minutes: 30 diff --git a/.github/workflows/network_info_plus.yaml b/.github/workflows/network_info_plus.yaml index 33a5a8a301..a147470c95 100644 --- a/.github/workflows/network_info_plus.yaml +++ b/.github/workflows/network_info_plus.yaml @@ -22,6 +22,28 @@ env: PLUGIN_EXAMPLE_SCOPE: "*network_info_plus_example*" jobs: + analyze: + name: "Dart Analyzer" + timeout-minutes: 15 + runs-on: ubuntu-latest + steps: + - name: "Checkout repository" + uses: actions/checkout@v4 + - name: "Install Flutter" + run: ./.github/workflows/scripts/install-flutter.sh stable + - name: "Install Tools" + run: | + ./.github/workflows/scripts/install-tools.sh + - name: "Bootstrap Workspace" + run: melos bootstrap + - name: "Run Dart Analyze" + uses: invertase/github-action-dart-analyzer@v3 + with: + fatal-infos: false + fatal-warnings: true + annotate: true + working-directory: ./packages/network_info_plus + android_example_build: runs-on: macos-14 timeout-minutes: 30 diff --git a/.github/workflows/package_info_plus.yaml b/.github/workflows/package_info_plus.yaml index daa97e53bd..6641ca7728 100644 --- a/.github/workflows/package_info_plus.yaml +++ b/.github/workflows/package_info_plus.yaml @@ -22,6 +22,28 @@ env: PLUGIN_EXAMPLE_SCOPE: "*package_info_plus_example*" jobs: + analyze: + name: "Dart Analyzer" + timeout-minutes: 15 + runs-on: ubuntu-latest + steps: + - name: "Checkout repository" + uses: actions/checkout@v4 + - name: "Install Flutter" + run: ./.github/workflows/scripts/install-flutter.sh stable + - name: "Install Tools" + run: | + ./.github/workflows/scripts/install-tools.sh + - name: "Bootstrap Workspace" + run: melos bootstrap + - name: "Run Dart Analyze" + uses: invertase/github-action-dart-analyzer@v3 + with: + fatal-infos: false + fatal-warnings: true + annotate: true + working-directory: ./packages/package_info_plus + android_example_build: runs-on: macos-14 timeout-minutes: 30 diff --git a/.github/workflows/sensors_plus.yaml b/.github/workflows/sensors_plus.yaml index bb35b25dd2..985eabbab2 100644 --- a/.github/workflows/sensors_plus.yaml +++ b/.github/workflows/sensors_plus.yaml @@ -18,6 +18,28 @@ env: PLUGIN_EXAMPLE_SCOPE: "*sensors_plus_example*" jobs: + analyze: + name: "Dart Analyzer" + timeout-minutes: 15 + runs-on: ubuntu-latest + steps: + - name: "Checkout repository" + uses: actions/checkout@v4 + - name: "Install Flutter" + run: ./.github/workflows/scripts/install-flutter.sh stable + - name: "Install Tools" + run: | + ./.github/workflows/scripts/install-tools.sh + - name: "Bootstrap Workspace" + run: melos bootstrap + - name: "Run Dart Analyze" + uses: invertase/github-action-dart-analyzer@v3 + with: + fatal-infos: false + fatal-warnings: true + annotate: true + working-directory: ./packages/sensors_plus + android_build: runs-on: macos-14 timeout-minutes: 30 diff --git a/.github/workflows/share_plus.yaml b/.github/workflows/share_plus.yaml index 84deb2822f..8b22581f9c 100644 --- a/.github/workflows/share_plus.yaml +++ b/.github/workflows/share_plus.yaml @@ -22,6 +22,28 @@ env: PLUGIN_EXAMPLE_SCOPE: "*share_plus_example*" jobs: + analyze: + name: "Dart Analyzer" + timeout-minutes: 15 + runs-on: ubuntu-latest + steps: + - name: "Checkout repository" + uses: actions/checkout@v4 + - name: "Install Flutter" + run: ./.github/workflows/scripts/install-flutter.sh stable + - name: "Install Tools" + run: | + ./.github/workflows/scripts/install-tools.sh + - name: "Bootstrap Workspace" + run: melos bootstrap + - name: "Run Dart Analyze" + uses: invertase/github-action-dart-analyzer@v3 + with: + fatal-infos: false + fatal-warnings: true + annotate: true + working-directory: ./packages/share_plus + android_build: runs-on: macos-14 timeout-minutes: 30