Merge pull request 'Added Woodpecker CI support' (#1) from ci into main
Reviewed-on: https://git.jojodev.com/joeyahines/formaty/pulls/1
This commit is contained in:
		
						commit
						492e4dfc52
					
				
							
								
								
									
										31
									
								
								.woodpecker.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								.woodpecker.yml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,31 @@ | |||||||
|  | clone: | ||||||
|  |   git: | ||||||
|  |     image: "woodpeckerci/plugin-git:next" | ||||||
|  | pipeline: | ||||||
|  |   compliance: | ||||||
|  |     commands: | ||||||
|  |       - "rustup component add clippy" | ||||||
|  |       - "cargo build --verbose" | ||||||
|  |       - "cargo clippy --workspace --tests --all-targets --all-features" | ||||||
|  |       - "cargo test --workspace --no-fail-fast" | ||||||
|  |     image: "rust:latest" | ||||||
|  |     when: | ||||||
|  |       event: pull_request, push | ||||||
|  |   build: | ||||||
|  |     commands: | ||||||
|  |       - "cargo build --release" | ||||||
|  |     image: "rust:latest" | ||||||
|  |     when: | ||||||
|  |       branch: main | ||||||
|  |       event: push | ||||||
|  |   release: | ||||||
|  |     image: jolheiser/drone-gitea-main:latest | ||||||
|  |     settings: | ||||||
|  |       token: | ||||||
|  |         from_secret: gitea_token | ||||||
|  |       base: https://git.jojodev.com | ||||||
|  |       files: | ||||||
|  |         - "target/release/format" | ||||||
|  |     when: | ||||||
|  |       branch: main | ||||||
|  |       event: push | ||||||
| @ -1,7 +1,7 @@ | |||||||
| [package] | [package] | ||||||
| name = "formaty" | name = "formaty" | ||||||
| version = "0.1.0" | version = "0.1.0" | ||||||
| edition = "2018" | edition = "2021" | ||||||
| 
 | 
 | ||||||
| # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user