mirror of https://github.com/vector-im/riot-web
				
				
				
			Add test coverage reporting (#8009)
							parent
							
								
									48cd83b9d5
								
							
						
					
					
						commit
						c89c2253fd
					
				| 
						 | 
				
			
			@ -0,0 +1,6 @@
 | 
			
		|||
comment:
 | 
			
		||||
  layout: "diff, files"
 | 
			
		||||
  behavior: default
 | 
			
		||||
  require_changes: false
 | 
			
		||||
  require_base: no
 | 
			
		||||
  require_head: no
 | 
			
		||||
| 
						 | 
				
			
			@ -0,0 +1,25 @@
 | 
			
		|||
name: Test coverage
 | 
			
		||||
on:
 | 
			
		||||
  pull_request: {}
 | 
			
		||||
  push:
 | 
			
		||||
    branches: [develop, main, master]
 | 
			
		||||
jobs:
 | 
			
		||||
  test-coverage:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Checkout code
 | 
			
		||||
        uses: actions/checkout@v2
 | 
			
		||||
 | 
			
		||||
      - name: Yarn cache
 | 
			
		||||
        uses: c-hive/gha-yarn-cache@v2
 | 
			
		||||
 | 
			
		||||
      - name: Install Deps
 | 
			
		||||
        run: "./scripts/ci/install-deps.sh --ignore-scripts"
 | 
			
		||||
 | 
			
		||||
      - name: Run tests with coverage
 | 
			
		||||
        run: "yarn install && yarn reskindex && yarn coverage"
 | 
			
		||||
 | 
			
		||||
      - name: Upload coverage
 | 
			
		||||
        uses: codecov/codecov-action@v2
 | 
			
		||||
        with:
 | 
			
		||||
          verbose: true
 | 
			
		||||
| 
						 | 
				
			
			@ -231,7 +231,8 @@
 | 
			
		|||
      "<rootDir>/src/**/*.{js,ts,tsx}"
 | 
			
		||||
    ],
 | 
			
		||||
    "coverageReporters": [
 | 
			
		||||
      "text"
 | 
			
		||||
      "text",
 | 
			
		||||
      "json"
 | 
			
		||||
    ]
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue