CI: lint
This commit is contained in:
		
							parent
							
								
									1d04a7139f
								
							
						
					
					
						commit
						5b7fc59257
					
				
					 2 changed files with 10 additions and 1 deletions
				
			
		
							
								
								
									
										9
									
								
								.github/workflows/ci.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								.github/workflows/ci.yml
									
										
									
									
										vendored
									
									
								
							|  | @ -14,10 +14,16 @@ jobs: | |||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|     - uses: actions/checkout@v2 | ||||
| 
 | ||||
|     - name: lint | ||||
|       run: cargo fmt -- --check | ||||
| 
 | ||||
|     - name: install wasm-pack | ||||
|       run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | ||||
| 
 | ||||
|     - name: check | ||||
|       run: cargo check | ||||
| 
 | ||||
|     - name: test | ||||
|       run: wasm-pack test --node | ||||
| 
 | ||||
|  | @ -26,14 +32,17 @@ jobs: | |||
|     needs: test | ||||
|     steps: | ||||
|     - uses: actions/checkout@v2 | ||||
| 
 | ||||
|     - name: install wasm-pack | ||||
|       run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | ||||
| 
 | ||||
|     - name: build | ||||
|       run: | | ||||
|         wasm-pack build | ||||
|         cd www | ||||
|         npm install | ||||
|         npm run build | ||||
| 
 | ||||
|     - name: deploy | ||||
|       uses: peaceiris/actions-gh-pages@v3 | ||||
|       if: github.ref == 'refs/heads/main' | ||||
|  |  | |||
|  | @ -3,7 +3,7 @@ mod utils; | |||
| use wasm_bindgen::prelude::*; | ||||
| 
 | ||||
| #[wasm_bindgen] | ||||
| extern { | ||||
| extern "C" { | ||||
|     fn alert(s: &str); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue