Browse Source

Analyze infos as fatal in CI

pull/40/head
jld3103 2 years ago
parent
commit
e18faa6ada
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 42
      .github/workflows/dart.yml
  2. 2
      packages/file_icons/mono_pkg.yaml
  3. 2
      packages/neon/mono_pkg.yaml
  4. 2
      packages/nextcloud/mono_pkg.yaml
  5. 2
      packages/nextcloud_push_proxy/mono_pkg.yaml
  6. 2
      packages/settings/mono_pkg.yaml
  7. 2
      packages/sort_box/mono_pkg.yaml
  8. 2
      packages/spec_templates/mono_pkg.yaml
  9. 8
      tool/ci.sh

42
.github/workflows/dart.yml

@ -245,7 +245,7 @@ jobs:
needs:
- job_001
job_009:
name: "analyze; PKG: packages/file_icons; `flutter analyze`"
name: "analyze; PKG: packages/file_icons; `flutter analyze --fatal-infos .`"
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
@ -268,14 +268,14 @@ jobs:
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: packages/file_icons
run: flutter pub pub upgrade
- name: packages/file_icons; flutter analyze
- name: "packages/file_icons; flutter analyze --fatal-infos ."
if: "always() && steps.packages_file_icons_pub_upgrade.conclusion == 'success'"
working-directory: packages/file_icons
run: flutter analyze
run: flutter analyze --fatal-infos .
needs:
- job_001
job_010:
name: "analyze; PKG: packages/neon; `flutter analyze`"
name: "analyze; PKG: packages/neon; `flutter analyze --fatal-infos .`"
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
@ -298,14 +298,14 @@ jobs:
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: packages/neon
run: flutter pub pub upgrade
- name: packages/neon; flutter analyze
- name: "packages/neon; flutter analyze --fatal-infos ."
if: "always() && steps.packages_neon_pub_upgrade.conclusion == 'success'"
working-directory: packages/neon
run: flutter analyze
run: flutter analyze --fatal-infos .
needs:
- job_001
job_011:
name: "analyze; PKG: packages/settings; `flutter analyze`"
name: "analyze; PKG: packages/settings; `flutter analyze --fatal-infos .`"
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
@ -328,14 +328,14 @@ jobs:
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: packages/settings
run: flutter pub pub upgrade
- name: packages/settings; flutter analyze
- name: "packages/settings; flutter analyze --fatal-infos ."
if: "always() && steps.packages_settings_pub_upgrade.conclusion == 'success'"
working-directory: packages/settings
run: flutter analyze
run: flutter analyze --fatal-infos .
needs:
- job_001
job_012:
name: "analyze; PKG: packages/nextcloud; `dart analyze`"
name: "analyze; PKG: packages/nextcloud; `dart analyze --fatal-infos .`"
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
@ -358,14 +358,14 @@ jobs:
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: packages/nextcloud
run: dart pub upgrade
- name: packages/nextcloud; dart analyze
- name: "packages/nextcloud; dart analyze --fatal-infos ."
if: "always() && steps.packages_nextcloud_pub_upgrade.conclusion == 'success'"
working-directory: packages/nextcloud
run: dart analyze
run: dart analyze --fatal-infos .
needs:
- job_001
job_013:
name: "analyze; PKG: packages/nextcloud_push_proxy; `dart analyze`"
name: "analyze; PKG: packages/nextcloud_push_proxy; `dart analyze --fatal-infos .`"
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
@ -388,14 +388,14 @@ jobs:
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: packages/nextcloud_push_proxy
run: dart pub upgrade
- name: packages/nextcloud_push_proxy; dart analyze
- name: "packages/nextcloud_push_proxy; dart analyze --fatal-infos ."
if: "always() && steps.packages_nextcloud_push_proxy_pub_upgrade.conclusion == 'success'"
working-directory: packages/nextcloud_push_proxy
run: dart analyze
run: dart analyze --fatal-infos .
needs:
- job_001
job_014:
name: "analyze; PKG: packages/sort_box; `dart analyze`"
name: "analyze; PKG: packages/sort_box; `dart analyze --fatal-infos .`"
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
@ -418,14 +418,14 @@ jobs:
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: packages/sort_box
run: dart pub upgrade
- name: packages/sort_box; dart analyze
- name: "packages/sort_box; dart analyze --fatal-infos ."
if: "always() && steps.packages_sort_box_pub_upgrade.conclusion == 'success'"
working-directory: packages/sort_box
run: dart analyze
run: dart analyze --fatal-infos .
needs:
- job_001
job_015:
name: "analyze; PKG: packages/spec_templates; `dart analyze`"
name: "analyze; PKG: packages/spec_templates; `dart analyze --fatal-infos .`"
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
@ -448,10 +448,10 @@ jobs:
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: packages/spec_templates
run: dart pub upgrade
- name: packages/spec_templates; dart analyze
- name: "packages/spec_templates; dart analyze --fatal-infos ."
if: "always() && steps.packages_spec_templates_pub_upgrade.conclusion == 'success'"
working-directory: packages/spec_templates
run: dart analyze
run: dart analyze --fatal-infos .
needs:
- job_001
job_016:

2
packages/file_icons/mono_pkg.yaml

@ -3,5 +3,5 @@ sdk:
stages:
- analyze:
- analyze
- analyze: --fatal-infos .
- format: --output=none --set-exit-if-changed --line-length 120 .

2
packages/neon/mono_pkg.yaml

@ -3,5 +3,5 @@ sdk:
stages:
- analyze:
- analyze
- analyze: --fatal-infos .
- format: --output=none --set-exit-if-changed --line-length 120 .

2
packages/nextcloud/mono_pkg.yaml

@ -3,7 +3,7 @@ sdk:
stages:
- analyze:
- analyze
- analyze: --fatal-infos .
- format: --output=none --set-exit-if-changed --line-length 120 .
- unit_test:
- test

2
packages/nextcloud_push_proxy/mono_pkg.yaml

@ -3,5 +3,5 @@ sdk:
stages:
- analyze:
- analyze
- analyze: --fatal-infos .
- format: --output=none --set-exit-if-changed --line-length 120 .

2
packages/settings/mono_pkg.yaml

@ -3,5 +3,5 @@ sdk:
stages:
- analyze:
- analyze
- analyze: --fatal-infos .
- format: --output=none --set-exit-if-changed --line-length 120 .

2
packages/sort_box/mono_pkg.yaml

@ -3,7 +3,7 @@ sdk:
stages:
- analyze:
- analyze
- analyze: --fatal-infos .
- format: --output=none --set-exit-if-changed --line-length 120 .
- unit_test:
- test

2
packages/spec_templates/mono_pkg.yaml

@ -3,5 +3,5 @@ sdk:
stages:
- analyze:
- analyze
- analyze: --fatal-infos .
- format: --output=none --set-exit-if-changed --line-length 120 .

8
tool/ci.sh

@ -68,12 +68,12 @@ for PKG in ${PKGS}; do
echo -e "\033[1mPKG: ${PKG}; TASK: ${TASK}\033[22m"
case ${TASK} in
analyze_0)
echo 'flutter analyze'
flutter analyze || EXIT_CODE=$?
echo 'flutter analyze --fatal-infos .'
flutter analyze --fatal-infos . || EXIT_CODE=$?
;;
analyze_1)
echo 'dart analyze'
dart analyze || EXIT_CODE=$?
echo 'dart analyze --fatal-infos .'
dart analyze --fatal-infos . || EXIT_CODE=$?
;;
format)
echo 'dart format --output=none --set-exit-if-changed --line-length 120 .'

Loading…
Cancel
Save