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 |     runs-on: ubuntu-latest | ||||||
|     steps: |     steps: | ||||||
|     - uses: actions/checkout@v2 |     - uses: actions/checkout@v2 | ||||||
|  | 
 | ||||||
|  |     - name: lint | ||||||
|  |       run: cargo fmt -- --check | ||||||
|  | 
 | ||||||
|     - name: install wasm-pack |     - name: install wasm-pack | ||||||
|       run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh |       run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | ||||||
|  | 
 | ||||||
|     - name: check |     - name: check | ||||||
|       run: cargo check |       run: cargo check | ||||||
|  | 
 | ||||||
|     - name: test |     - name: test | ||||||
|       run: wasm-pack test --node |       run: wasm-pack test --node | ||||||
| 
 | 
 | ||||||
|  | @ -26,14 +32,17 @@ jobs: | ||||||
|     needs: test |     needs: test | ||||||
|     steps: |     steps: | ||||||
|     - uses: actions/checkout@v2 |     - uses: actions/checkout@v2 | ||||||
|  | 
 | ||||||
|     - name: install wasm-pack |     - name: install wasm-pack | ||||||
|       run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh |       run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | ||||||
|  | 
 | ||||||
|     - name: build |     - name: build | ||||||
|       run: | |       run: | | ||||||
|         wasm-pack build |         wasm-pack build | ||||||
|         cd www |         cd www | ||||||
|         npm install |         npm install | ||||||
|         npm run build |         npm run build | ||||||
|  | 
 | ||||||
|     - name: deploy |     - name: deploy | ||||||
|       uses: peaceiris/actions-gh-pages@v3 |       uses: peaceiris/actions-gh-pages@v3 | ||||||
|       if: github.ref == 'refs/heads/main' |       if: github.ref == 'refs/heads/main' | ||||||
|  |  | ||||||
|  | @ -3,7 +3,7 @@ mod utils; | ||||||
| use wasm_bindgen::prelude::*; | use wasm_bindgen::prelude::*; | ||||||
| 
 | 
 | ||||||
| #[wasm_bindgen] | #[wasm_bindgen] | ||||||
| extern { | extern "C" { | ||||||
|     fn alert(s: &str); |     fn alert(s: &str); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue