mirror of
				https://github.com/BitskiCo/jwk-rs
				synced 2025-10-31 09:14:44 +00:00 
			
		
		
		
	Add codecov to CI
This commit is contained in:
		
							
								
								
									
										31
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										31
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							| @@ -15,17 +15,20 @@ jobs: | |||||||
|           override: true |           override: true | ||||||
|           components: rustfmt, clippy |           components: rustfmt, clippy | ||||||
|  |  | ||||||
|       - uses: actions-rs/cargo@v1 |       - name: Rustfmt | ||||||
|  |         uses: actions-rs/cargo@v1 | ||||||
|         with: |         with: | ||||||
|           command: fmt |           command: fmt | ||||||
|           args: --all -- --check |           args: --all -- --check | ||||||
|  |  | ||||||
|       - uses: actions-rs/cargo@v1 |       - name: Clippy | ||||||
|  |         uses: actions-rs/cargo@v1 | ||||||
|         with: |         with: | ||||||
|           command: clippy |           command: clippy | ||||||
|           args: --all-features --profile test -- -D warnings |           args: --all-features --profile test -- -D warnings | ||||||
|  |  | ||||||
|       - uses: actions-rs/cargo@v1 |       - name: Test | ||||||
|  |         uses: actions-rs/cargo@v1 | ||||||
|         with: |         with: | ||||||
|           command: test |           command: test | ||||||
|           args: --all-features |           args: --all-features | ||||||
| @@ -41,7 +44,27 @@ jobs: | |||||||
|           toolchain: nightly |           toolchain: nightly | ||||||
|           override: true |           override: true | ||||||
|  |  | ||||||
|       - uses: actions-rs/cargo@v1 |       - name: Build (release) | ||||||
|  |         uses: actions-rs/cargo@v1 | ||||||
|         with: |         with: | ||||||
|           command: build |           command: build | ||||||
|           args: --all-features --release |           args: --all-features --release | ||||||
|  |  | ||||||
|  |   codecov: | ||||||
|  |     runs-on: ubuntu-latest | ||||||
|  |     steps: | ||||||
|  |       - uses: actions/checkout@v2 | ||||||
|  |  | ||||||
|  |       - uses: actions-rs/toolchain@v1 | ||||||
|  |         with: | ||||||
|  |           profile: minimal | ||||||
|  |           toolchain: nightly | ||||||
|  |           override: true | ||||||
|  |  | ||||||
|  |       - uses: actions-rs/tarpaulin@v0.1 | ||||||
|  |         with: | ||||||
|  |           args: '--all-features' | ||||||
|  |  | ||||||
|  |       - uses: codecov/codecov-action@v1 | ||||||
|  |         with: | ||||||
|  |           token: ${{secrets.CODECOV_TOKEN}} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Nick Hynes
					Nick Hynes