Browse Source

Merge pull request #40 from jld3103/feature/analyze-fatal-infos

Analyze infos as fatal in CI
pull/45/head
jld3103 2 years ago committed by GitHub
parent
commit
6849bc13f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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: needs:
- job_001 - job_001
job_009: job_009:
name: "analyze; PKG: packages/file_icons; `flutter analyze`" name: "analyze; PKG: packages/file_icons; `flutter analyze --fatal-infos .`"
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Cache Pub hosted dependencies - name: Cache Pub hosted dependencies
@ -268,14 +268,14 @@ jobs:
if: "always() && steps.checkout.conclusion == 'success'" if: "always() && steps.checkout.conclusion == 'success'"
working-directory: packages/file_icons working-directory: packages/file_icons
run: flutter pub pub upgrade 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'" if: "always() && steps.packages_file_icons_pub_upgrade.conclusion == 'success'"
working-directory: packages/file_icons working-directory: packages/file_icons
run: flutter analyze run: flutter analyze --fatal-infos .
needs: needs:
- job_001 - job_001
job_010: job_010:
name: "analyze; PKG: packages/neon; `flutter analyze`" name: "analyze; PKG: packages/neon; `flutter analyze --fatal-infos .`"
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Cache Pub hosted dependencies - name: Cache Pub hosted dependencies
@ -298,14 +298,14 @@ jobs:
if: "always() && steps.checkout.conclusion == 'success'" if: "always() && steps.checkout.conclusion == 'success'"
working-directory: packages/neon working-directory: packages/neon
run: flutter pub pub upgrade 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'" if: "always() && steps.packages_neon_pub_upgrade.conclusion == 'success'"
working-directory: packages/neon working-directory: packages/neon
run: flutter analyze run: flutter analyze --fatal-infos .
needs: needs:
- job_001 - job_001
job_011: job_011:
name: "analyze; PKG: packages/settings; `flutter analyze`" name: "analyze; PKG: packages/settings; `flutter analyze --fatal-infos .`"
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Cache Pub hosted dependencies - name: Cache Pub hosted dependencies
@ -328,14 +328,14 @@ jobs:
if: "always() && steps.checkout.conclusion == 'success'" if: "always() && steps.checkout.conclusion == 'success'"
working-directory: packages/settings working-directory: packages/settings
run: flutter pub pub upgrade 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'" if: "always() && steps.packages_settings_pub_upgrade.conclusion == 'success'"
working-directory: packages/settings working-directory: packages/settings
run: flutter analyze run: flutter analyze --fatal-infos .
needs: needs:
- job_001 - job_001
job_012: job_012:
name: "analyze; PKG: packages/nextcloud; `dart analyze`" name: "analyze; PKG: packages/nextcloud; `dart analyze --fatal-infos .`"
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Cache Pub hosted dependencies - name: Cache Pub hosted dependencies
@ -358,14 +358,14 @@ jobs:
if: "always() && steps.checkout.conclusion == 'success'" if: "always() && steps.checkout.conclusion == 'success'"
working-directory: packages/nextcloud working-directory: packages/nextcloud
run: dart pub upgrade 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'" if: "always() && steps.packages_nextcloud_pub_upgrade.conclusion == 'success'"
working-directory: packages/nextcloud working-directory: packages/nextcloud
run: dart analyze run: dart analyze --fatal-infos .
needs: needs:
- job_001 - job_001
job_013: 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 runs-on: ubuntu-latest
steps: steps:
- name: Cache Pub hosted dependencies - name: Cache Pub hosted dependencies
@ -388,14 +388,14 @@ jobs:
if: "always() && steps.checkout.conclusion == 'success'" if: "always() && steps.checkout.conclusion == 'success'"
working-directory: packages/nextcloud_push_proxy working-directory: packages/nextcloud_push_proxy
run: dart pub upgrade 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'" if: "always() && steps.packages_nextcloud_push_proxy_pub_upgrade.conclusion == 'success'"
working-directory: packages/nextcloud_push_proxy working-directory: packages/nextcloud_push_proxy
run: dart analyze run: dart analyze --fatal-infos .
needs: needs:
- job_001 - job_001
job_014: job_014:
name: "analyze; PKG: packages/sort_box; `dart analyze`" name: "analyze; PKG: packages/sort_box; `dart analyze --fatal-infos .`"
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Cache Pub hosted dependencies - name: Cache Pub hosted dependencies
@ -418,14 +418,14 @@ jobs:
if: "always() && steps.checkout.conclusion == 'success'" if: "always() && steps.checkout.conclusion == 'success'"
working-directory: packages/sort_box working-directory: packages/sort_box
run: dart pub upgrade 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'" if: "always() && steps.packages_sort_box_pub_upgrade.conclusion == 'success'"
working-directory: packages/sort_box working-directory: packages/sort_box
run: dart analyze run: dart analyze --fatal-infos .
needs: needs:
- job_001 - job_001
job_015: job_015:
name: "analyze; PKG: packages/spec_templates; `dart analyze`" name: "analyze; PKG: packages/spec_templates; `dart analyze --fatal-infos .`"
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Cache Pub hosted dependencies - name: Cache Pub hosted dependencies
@ -448,10 +448,10 @@ jobs:
if: "always() && steps.checkout.conclusion == 'success'" if: "always() && steps.checkout.conclusion == 'success'"
working-directory: packages/spec_templates working-directory: packages/spec_templates
run: dart pub upgrade 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'" if: "always() && steps.packages_spec_templates_pub_upgrade.conclusion == 'success'"
working-directory: packages/spec_templates working-directory: packages/spec_templates
run: dart analyze run: dart analyze --fatal-infos .
needs: needs:
- job_001 - job_001
job_016: job_016:

2
packages/file_icons/mono_pkg.yaml

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

2
packages/neon/mono_pkg.yaml

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

2
packages/nextcloud/mono_pkg.yaml

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

2
packages/nextcloud_push_proxy/mono_pkg.yaml

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

2
packages/settings/mono_pkg.yaml

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

2
packages/sort_box/mono_pkg.yaml

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

2
packages/spec_templates/mono_pkg.yaml

@ -3,5 +3,5 @@ sdk:
stages: stages:
- analyze: - analyze:
- analyze - analyze: --fatal-infos .
- format: --output=none --set-exit-if-changed --line-length 120 . - 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" echo -e "\033[1mPKG: ${PKG}; TASK: ${TASK}\033[22m"
case ${TASK} in case ${TASK} in
analyze_0) analyze_0)
echo 'flutter analyze' echo 'flutter analyze --fatal-infos .'
flutter analyze || EXIT_CODE=$? flutter analyze --fatal-infos . || EXIT_CODE=$?
;; ;;
analyze_1) analyze_1)
echo 'dart analyze' echo 'dart analyze --fatal-infos .'
dart analyze || EXIT_CODE=$? dart analyze --fatal-infos . || EXIT_CODE=$?
;; ;;
format) format)
echo 'dart format --output=none --set-exit-if-changed --line-length 120 .' echo 'dart format --output=none --set-exit-if-changed --line-length 120 .'

Loading…
Cancel
Save