mirror of
				https://github.com/f-droid/fdroidserver.git
				synced 2025-11-03 22:20:28 +03:00 
			
		
		
		
	gitlab-ci: add yamllint job
This commit is contained in:
		
							parent
							
								
									642499ec94
								
							
						
					
					
						commit
						1f96a84f9a
					
				
					 6 changed files with 38 additions and 10 deletions
				
			
		| 
						 | 
				
			
			@ -274,6 +274,35 @@ safety:
 | 
			
		|||
    - python3 -m safety --key "$SAFETY_API_KEY" --stage cicd scan
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# TODO tests/*/*/*.yaml are not covered
 | 
			
		||||
yamllint:
 | 
			
		||||
  image: debian:bookworm-slim
 | 
			
		||||
  rules:
 | 
			
		||||
    # once only:/changes: are ported to rules:, this could be removed:
 | 
			
		||||
    - if: $CI_PIPELINE_SOURCE == "merge_request_event"
 | 
			
		||||
      when: never
 | 
			
		||||
    - if: $CI_PIPELINE_SOURCE == "push"
 | 
			
		||||
      changes:
 | 
			
		||||
        - .gitlab-ci.yml
 | 
			
		||||
        - .safety-policy.yml
 | 
			
		||||
        - .yamllint
 | 
			
		||||
        - tests/*.yml
 | 
			
		||||
        - tests/*/*.yml
 | 
			
		||||
        - tests/*/*/.*.yml
 | 
			
		||||
  <<: *apt-template
 | 
			
		||||
  variables:
 | 
			
		||||
    LANG: C.UTF-8
 | 
			
		||||
  script:
 | 
			
		||||
    - apt-get install yamllint
 | 
			
		||||
    - yamllint
 | 
			
		||||
        .gitlab-ci.yml
 | 
			
		||||
        .safety-policy.yml
 | 
			
		||||
        .yamllint
 | 
			
		||||
        tests/*.yml
 | 
			
		||||
        tests/*/*.yml
 | 
			
		||||
        tests/*/*/.*.yml
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# Run all the various linters and static analysis tools.
 | 
			
		||||
locales:
 | 
			
		||||
  image: debian:bookworm-slim
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue