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@c5b1b6f479c32f356cc6f4ba672a47f63853b13b # v2.62.38
 | 
						|
        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 }}
 |