mirror of https://github.com/fafhrd91/actix-web
				
				
				
			
		
			
				
	
	
		
			41 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			YAML
		
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			YAML
		
	
	
	
| name: Coverage
 | |
| 
 | |
| on:
 | |
|   push:
 | |
|     branches: [master]
 | |
| 
 | |
| permissions:
 | |
|   contents: read
 | |
| 
 | |
| concurrency:
 | |
|   group: ${{ github.workflow }}-${{ github.ref }}
 | |
|   cancel-in-progress: true
 | |
| 
 | |
| jobs:
 | |
|   coverage:
 | |
|     runs-on: ubuntu-latest
 | |
|     steps:
 | |
|       - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
 | |
| 
 | |
|       - name: Install Rust (nightly)
 | |
|         uses: actions-rust-lang/setup-rust-toolchain@1780873c7b576612439a134613cc4cc74ce5538c # v1.15.2
 | |
|         with:
 | |
|           toolchain: nightly
 | |
|           components: llvm-tools
 | |
| 
 | |
|       - name: Install just, cargo-llvm-cov, cargo-nextest
 | |
|         uses: taiki-e/install-action@e43a5023a747770bfcb71ae048541a681714b951 # v2.62.33
 | |
|         with:
 | |
|           tool: just,cargo-llvm-cov,cargo-nextest
 | |
| 
 | |
|       - name: Generate code coverage
 | |
|         run: just test-coverage-codecov
 | |
| 
 | |
|       - name: Upload coverage to Codecov
 | |
|         uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
 | |
|         with:
 | |
|           files: codecov.json
 | |
|           fail_ci_if_error: true
 | |
|         env:
 | |
|           CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
 |