fix: license_check failed on flutter pkgs #1146
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ci | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| verify-dart: | |
| uses: ./.github/workflows/dart_package.yml | |
| with: | |
| setup: dart --version | |
| platform: "vm,chrome" | |
| working_directory: examples/dart_package | |
| verify-flutter: | |
| uses: ./.github/workflows/flutter_package.yml | |
| with: | |
| flutter_channel: stable | |
| flutter_version: "3.41.x" | |
| setup: flutter doctor --verbose | |
| working_directory: examples/flutter_package | |
| verify-pana-dart: | |
| uses: ./.github/workflows/pana.yml | |
| with: | |
| pana_version: 0.22.24 | |
| min_score: 95 | |
| working_directory: examples/dart_package | |
| verify-pana-flutter: | |
| uses: ./.github/workflows/pana.yml | |
| with: | |
| pana_version: 0.22.24 | |
| min_score: 95 | |
| working_directory: examples/flutter_package | |
| verify-semantic-pull-request: | |
| uses: ./.github/workflows/semantic_pull_request.yml | |
| with: | |
| scopes: "dart_package, deps, flutter_package, pana, semantic_pull_request, spell_check" | |
| verify-spell-check: | |
| uses: ./.github/workflows/spell_check.yml | |
| with: | |
| modified_files_only: false | |
| # Test 1: Neither SDK specified — should show ::notice:: and default to stable Dart | |
| verify-license-check-no-sdk: | |
| uses: ./.github/workflows/license_check.yml | |
| with: | |
| working_directory: examples/dart_package | |
| dependency_type: "direct-dev" | |
| allowed: "" | |
| forbidden: "unknown" | |
| skip_packages: "very_good_analysis" | |
| # Test 2: Only dart_sdk specified | |
| verify-license-check-dart-only: | |
| uses: ./.github/workflows/license_check.yml | |
| with: | |
| working_directory: examples/dart_package | |
| dart_sdk: "stable" | |
| dependency_type: "direct-dev" | |
| allowed: "" | |
| forbidden: "unknown" | |
| skip_packages: "very_good_analysis" | |
| # Test 3: Only flutter_version specified | |
| verify-license-check-flutter-only: | |
| uses: ./.github/workflows/license_check.yml | |
| with: | |
| working_directory: examples/flutter_package | |
| flutter_version: "3.41.x" | |
| allowed: "MIT,BSD-3-Clause,BSD-2-Clause,Apache-2.0,Zlib" | |
| # Test 4: Both specified — should show ::warning:: and use Flutter | |
| verify-license-check-both: | |
| uses: ./.github/workflows/license_check.yml | |
| with: | |
| working_directory: examples/flutter_package | |
| flutter_version: "3.41.x" | |
| dart_sdk: "stable" | |
| allowed: "MIT,BSD-3-Clause,BSD-2-Clause,Apache-2.0,Zlib" | |
| # Test 5: Flutter project without flutter_version — EXPECTED TO FAIL | |
| # Not in the build "needs" list so it won't block CI | |
| verify-license-check-flutter-no-sdk: | |
| uses: ./.github/workflows/license_check.yml | |
| with: | |
| working_directory: examples/flutter_package | |
| build: | |
| needs: | |
| [ | |
| verify-dart, | |
| verify-flutter, | |
| verify-pana-dart, | |
| verify-pana-flutter, | |
| verify-semantic-pull-request, | |
| verify-spell-check, | |
| verify-license-check-no-sdk, | |
| verify-license-check-dart-only, | |
| verify-license-check-flutter-only, | |
| verify-license-check-both, | |
| ] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: noop | |
| run: echo 'noop' |