mirror of
				https://github.com/XRPLF/clio.git
				synced 2025-11-04 03:45:50 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			32 lines
		
	
	
		
			800 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			800 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
name: Generate code coverage report
 | 
						|
description: Run tests, generate code coverage report and upload it to codecov.io
 | 
						|
 | 
						|
runs:
 | 
						|
  using: composite
 | 
						|
 | 
						|
  steps:
 | 
						|
    - name: Run tests
 | 
						|
      shell: bash
 | 
						|
      run: |
 | 
						|
        build/clio_tests
 | 
						|
 | 
						|
    # Please keep exclude list in sync with .codecov.yml
 | 
						|
    - name: Run gcovr
 | 
						|
      shell: bash
 | 
						|
      run: |
 | 
						|
        gcovr \
 | 
						|
          -e benchmarks \
 | 
						|
          -e tests \
 | 
						|
          -e src/data/cassandra \
 | 
						|
          -e src/data/CassandraBackend.hpp \
 | 
						|
          -e 'src/data/BackendFactory.*' \
 | 
						|
          --xml build/coverage_report.xml \
 | 
						|
          -j8 --exclude-throw-branches
 | 
						|
 | 
						|
    - name: Archive coverage report
 | 
						|
      uses: actions/upload-artifact@v4
 | 
						|
      with:
 | 
						|
        name: coverage-report.xml
 | 
						|
        path: build/coverage_report.xml
 | 
						|
        retention-days: 30
 |