ci: use latest flutter-melos container #179
@ -20,7 +20,7 @@ name: default
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
steps:
 | 
					steps:
 | 
				
			||||||
  - name: quality-check
 | 
					  - name: quality-check
 | 
				
			||||||
    image: git.wyatt-studio.fr/wyatt-foss/flutter-melos:2.9.0-1
 | 
					    image: git.wyatt-studio.fr/wyatt-foss/flutter-melos:latest
 | 
				
			||||||
    commands:
 | 
					    commands:
 | 
				
			||||||
      - melos run quality-check
 | 
					      - melos run quality-check
 | 
				
			||||||
      - melos run publish:validate
 | 
					      - melos run publish:validate
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										90
									
								
								melos.yaml
									
									
									
									
									
								
							
							
						
						
									
										90
									
								
								melos.yaml
									
									
									
									
									
								
							@ -1,65 +1,86 @@
 | 
				
			|||||||
name: Wyatt-Packages
 | 
					name: Wyatt-Packages
 | 
				
			||||||
#repository: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages Gitea not yet supported
 | 
					#repository: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages Gitea not yet supported
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					sdkPath: auto
 | 
				
			||||||
 | 
					
 | 
				
			||||||
packages:
 | 
					packages:
 | 
				
			||||||
  - packages/**
 | 
					  - packages/**
 | 
				
			||||||
 | 
					
 | 
				
			||||||
command:
 | 
					ide:
 | 
				
			||||||
  bootstrap:
 | 
					  intellij:
 | 
				
			||||||
    usePubspecOverrides: true
 | 
					    enabled: false
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					command:
 | 
				
			||||||
  version:
 | 
					  version:
 | 
				
			||||||
    updateGitTagRefs: true
 | 
					    updateGitTagRefs: true
 | 
				
			||||||
    linkToCommits: false # Gitea not yet supported
 | 
					    linkToCommits: false # Gitea not yet supported
 | 
				
			||||||
    workspaceChangelog: true
 | 
					    workspaceChangelog: true
 | 
				
			||||||
 | 
					    includeCommitId: true
 | 
				
			||||||
    branch: master
 | 
					    branch: master
 | 
				
			||||||
 | 
					    message: |
 | 
				
			||||||
 | 
					      chore(release): publish packages 🎉
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      {new_package_versions}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  clean:
 | 
				
			||||||
 | 
					    hooks:
 | 
				
			||||||
 | 
					      post: melos exec --flutter --concurrency=3 -- "flutter clean"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
scripts:
 | 
					scripts:
 | 
				
			||||||
 | 
					  analyze:
 | 
				
			||||||
 | 
					    run: |
 | 
				
			||||||
 | 
					      melos exec --flutter --concurrency=1 -- flutter analyze --fatal-infos
 | 
				
			||||||
 | 
					    description: Run `flutter analyze` for all flutter packages.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  fix:apply:
 | 
				
			||||||
 | 
					    run: melos exec --concurrency=1 -- dart fix . --apply
 | 
				
			||||||
 | 
					    description: Run and apply `dart fix` for all packages.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  fix:check:
 | 
				
			||||||
 | 
					    run: melos exec --concurrency=1 -- dart fix . --set-exit-if-changed
 | 
				
			||||||
 | 
					    description: Run `dart fix` checks for all packages.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  format:
 | 
				
			||||||
 | 
					    run: melos exec --concurrency=1 -- dart format .
 | 
				
			||||||
 | 
					    description: Run `dart format` for all packages.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  lint:all:
 | 
					  lint:all:
 | 
				
			||||||
    run: melos run analyze && melos run format
 | 
					    run: melos run analyze && melos run format
 | 
				
			||||||
    description: Run all static analysis checks.
 | 
					    description: Run all static analysis checks.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  analyze:
 | 
					 | 
				
			||||||
    run: |
 | 
					 | 
				
			||||||
      melos exec -c 1 -- flutter analyze --fatal-infos
 | 
					 | 
				
			||||||
    description: Run `flutter analyze` for all packages.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  fix:
 | 
					 | 
				
			||||||
    run: melos exec dart fix . --apply
 | 
					 | 
				
			||||||
    description: Run `dart fix` for all packages.
 | 
					 | 
				
			||||||
  
 | 
					 | 
				
			||||||
  format:
 | 
					 | 
				
			||||||
    run: melos exec dart format .
 | 
					 | 
				
			||||||
    description: Run `dart format` for all packages.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  format-check:
 | 
					 | 
				
			||||||
    run: melos exec dart fix . --set-exit-if-changed
 | 
					 | 
				
			||||||
    description: Run `dart fix` checks for all packages.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  clean:deep:
 | 
					  clean:deep:
 | 
				
			||||||
    run: git clean -x -d -f -q
 | 
					    run: git clean -x -d -f -q
 | 
				
			||||||
    description: Clean things very deeply with `git clean`.
 | 
					    description: Clean things very deeply with `git clean`.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  test:selective_unit_test:
 | 
					  test:selective_unit_test:
 | 
				
			||||||
    run: melos exec -- flutter test --no-pub --coverage
 | 
					    run: melos exec --concurrency=1 -- flutter test --no-pub --coverage
 | 
				
			||||||
    description: Run Flutter tests for a specific package in this project.
 | 
					    description: Run Flutter tests for a specific package in this project.
 | 
				
			||||||
    select-package:
 | 
					    packageFilters:
 | 
				
			||||||
      dir-exists:
 | 
					      dirExists:
 | 
				
			||||||
        - test
 | 
					        - test
 | 
				
			||||||
      ignore:
 | 
					      ignore:
 | 
				
			||||||
        - '*example*'
 | 
					        - "*example*"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  test:all:
 | 
					  test:all:
 | 
				
			||||||
    run: melos run test:selective_unit_test --no-select
 | 
					    run: melos run test:selective_unit_test --no-select
 | 
				
			||||||
    description: Run all Flutter tests in this project.
 | 
					    description: Run all Flutter tests in this project.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  gen-coverage: melos exec -- sh "\$MELOS_ROOT_PATH/combine_coverage.sh" && genhtml coverage/lcov.info -o coverage/html
 | 
					  gen:coverage:
 | 
				
			||||||
 | 
					    run: |
 | 
				
			||||||
 | 
					      melos exec --concurrency=1 -- sh "\$MELOS_ROOT_PATH/combine_coverage.sh" && \
 | 
				
			||||||
 | 
					      genhtml coverage/lcov.info -o coverage/html
 | 
				
			||||||
 | 
					    description: |
 | 
				
			||||||
 | 
					      Generate coverage report for all packages.
 | 
				
			||||||
 | 
					      Requires `lcov` and `genhtml`.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  gen-class-models: 
 | 
					  gen:class_models:
 | 
				
			||||||
    run: melos exec -- dart pub global run dcdg -o models/class-models.puml
 | 
					    run: melos exec --concurrency=1 -- dart pub global run dcdg -o models/class-models.puml
 | 
				
			||||||
    select-package:
 | 
					    description: |
 | 
				
			||||||
 | 
					      Generate class models for all packages.
 | 
				
			||||||
 | 
					      Requires `dcdg`. (https://pub.dev/packages/dcdg)
 | 
				
			||||||
 | 
					    packageFilters:
 | 
				
			||||||
      ignore:
 | 
					      ignore:
 | 
				
			||||||
        - '*example*'
 | 
					        - "*example*"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  quality-check:
 | 
					  quality-check:
 | 
				
			||||||
    run: |
 | 
					    run: |
 | 
				
			||||||
@ -70,13 +91,16 @@ scripts:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  publish:validate:
 | 
					  publish:validate:
 | 
				
			||||||
    run: melos publish --diff="origin/$DRONE_COMMIT_BRANCH...HEAD" --yes
 | 
					    run: melos publish --diff="origin/$DRONE_COMMIT_BRANCH...HEAD" --yes
 | 
				
			||||||
 | 
					    description: |
 | 
				
			||||||
 | 
					      Validate that all packages are ready to be published.
 | 
				
			||||||
 | 
					      Requires DRONE_COMMIT_BRANCH to be set.
 | 
				
			||||||
 | 
					      Note: This will not actually publish anything.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  publish:validate-local:
 | 
					  publish:validate-local:
 | 
				
			||||||
    run: melos publish --yes
 | 
					    run: melos publish --yes
 | 
				
			||||||
 | 
					    description: |
 | 
				
			||||||
 | 
					      Validate that all packages are ready to be published.
 | 
				
			||||||
 | 
					      Note: This will not actually publish anything.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  # publish:
 | 
					  # publish:
 | 
				
			||||||
  #   run: melos publish --diff="origin/$DRONE_COMMIT_BRANCH...HEAD" --no-dry-run --yes
 | 
					  #   run: melos publish --diff="origin/$DRONE_COMMIT_BRANCH...HEAD" --no-dry-run --yes
 | 
				
			||||||
  
 | 
					 | 
				
			||||||
  # Additional cleanup lifecycle script, executed when `melos clean` is run.
 | 
					 | 
				
			||||||
  postclean: >
 | 
					 | 
				
			||||||
    melos exec -c 6 -- "flutter clean"
 | 
					 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user