mirror of
				https://github.com/XRPLF/clio.git
				synced 2025-11-04 03:45:50 +00:00 
			
		
		
		
	I started with really simple pre-commit hooks and will add more on top. Important files: - `.pre-commit-config.yaml` - the config for pre-commit - `.github/workflows/pre-commit.yml` - runs pre-commit hooks in branches and `develop` - `.github/workflows/pre-commit-autoupdate.yml` - autoupdates pre-commit hooks once in a month
		
			
				
	
	
		
			36 lines
		
	
	
		
			910 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			910 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
name: Upload report
 | 
						|
on:
 | 
						|
  workflow_dispatch:
 | 
						|
  workflow_call:
 | 
						|
    secrets:
 | 
						|
      CODECOV_TOKEN:
 | 
						|
        required: true
 | 
						|
 | 
						|
jobs:
 | 
						|
  upload_report:
 | 
						|
    name: Upload report
 | 
						|
    runs-on: ubuntu-latest
 | 
						|
    steps:
 | 
						|
      - uses: actions/checkout@v4
 | 
						|
        with:
 | 
						|
          fetch-depth: 0
 | 
						|
 | 
						|
      - name: Download report artifact
 | 
						|
        uses: actions/download-artifact@v4
 | 
						|
        with:
 | 
						|
          name: coverage-report.xml
 | 
						|
          path: build
 | 
						|
 | 
						|
      - name: Upload coverage report
 | 
						|
        if: ${{ hashFiles('build/coverage_report.xml') != '' }}
 | 
						|
        uses: wandalen/wretry.action@ffdd254f4eaf1562b8a2c66aeaa37f1ff2231179 #v3.7.3
 | 
						|
        with:
 | 
						|
          action: codecov/codecov-action@v4
 | 
						|
          with: |
 | 
						|
            files: build/coverage_report.xml
 | 
						|
            fail_ci_if_error: false
 | 
						|
            verbose: true
 | 
						|
            token: ${{ secrets.CODECOV_TOKEN }}
 | 
						|
          attempt_limit: 5
 | 
						|
          attempt_delay: 10000
 |