Add CodeCov for Ruby coverage reports (#23868)
This commit is contained in:
		
							
								
								
									
										8
									
								
								.github/workflows/test-ruby.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								.github/workflows/test-ruby.yml
									
									
									
									
										vendored
									
									
								
							@@ -94,7 +94,7 @@ jobs:
 | 
			
		||||
      DB_HOST: localhost
 | 
			
		||||
      DB_USER: postgres
 | 
			
		||||
      DB_PASS: postgres
 | 
			
		||||
      DISABLE_SIMPLECOV: true
 | 
			
		||||
      DISABLE_SIMPLECOV: ${{ matrix.ruby-version != '.ruby-version' }}
 | 
			
		||||
      RAILS_ENV: test
 | 
			
		||||
      ALLOW_NOPAM: true
 | 
			
		||||
      PAM_ENABLED: true
 | 
			
		||||
@@ -137,6 +137,12 @@ jobs:
 | 
			
		||||
 | 
			
		||||
      - run: bin/rspec
 | 
			
		||||
 | 
			
		||||
      - name: Upload coverage reports to Codecov
 | 
			
		||||
        if: matrix.ruby-version == '.ruby-version'
 | 
			
		||||
        uses: codecov/codecov-action@v3
 | 
			
		||||
        with:
 | 
			
		||||
          files: coverage/lcov/mastodon.lcov
 | 
			
		||||
 | 
			
		||||
  test-e2e:
 | 
			
		||||
    name: End to End testing
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user