Update .github/workflows/test.yml
This commit is contained in:
		
							parent
							
								
									c052452e19
								
							
						
					
					
						commit
						3c8c406bb7
					
				
					 1 changed files with 15 additions and 9 deletions
				
			
		
							
								
								
									
										24
									
								
								.github/workflows/test.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										24
									
								
								.github/workflows/test.yml
									
										
									
									
										vendored
									
									
								
							|  | @ -2,17 +2,23 @@ name: Compile Rust Code on Release | ||||||
| 
 | 
 | ||||||
| on: [push] | on: [push] | ||||||
| 
 | 
 | ||||||
| jobs: |  | ||||||
|   build: |  | ||||||
|     runs-on: ubuntu-latest |  | ||||||
| 
 | 
 | ||||||
|  | on: [push] | ||||||
|  | jobs: | ||||||
|  |   lint&test: | ||||||
|  |     runs-on: ubuntu-latest | ||||||
|  |     container: | ||||||
|  |       image: rust | ||||||
|     steps: |     steps: | ||||||
|       - name: Checkout code |       # nodejs is required for the checkout action | ||||||
|         uses: actions/checkout@v2 |       - run: curl -sL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -y nodejs | ||||||
|       - name: Setup Rust toolchain |       - uses: actions/checkout@v4 | ||||||
|         uses: actions-rust-lang/setup-rust-toolchain@v1 |       - run: rustup component add rustfmt clippy | ||||||
|       - name: Build in Release Mode |       - run: cargo fmt -- --check | ||||||
|         run: cargo build --release |       - run: cargo clippy -- -D warnings | ||||||
|  |       - run: cargo check | ||||||
|  |       - run: cargo test | ||||||
|  |       - run: cargo build --release | ||||||
|       - name: Package Artifacts |       - name: Package Artifacts | ||||||
|         run: | |         run: | | ||||||
|           mkdir -p artifacts |           mkdir -p artifacts | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue