Codeclimate CI for tests coverage.
This commit is contained in:
		
							parent
							
								
									c6cfe8e698
								
							
						
					
					
						commit
						5299d1c5ec
					
				
							
								
								
									
										22
									
								
								.github/workflows/go.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										22
									
								
								.github/workflows/go.yml
									
									
									
									
										vendored
									
									
								
							| @ -38,7 +38,7 @@ jobs: | ||||
|     - name: Run tests | ||||
|       run: go test -v -covermode=count | ||||
| 
 | ||||
|   coverage: | ||||
|   coverage-coveralls: | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|     - name: Install Go | ||||
| @ -63,3 +63,23 @@ jobs: | ||||
|       with: | ||||
|         github-token: ${{ secrets.GITHUB_TOKEN }} | ||||
|         path-to-lcov: coverage.lcov | ||||
| 
 | ||||
|   coverage-codeclimate: | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|     - name: Install Go | ||||
|       if: success() | ||||
|       uses: actions/setup-go@v2 | ||||
|       with: | ||||
|         go-version: 1.15.x | ||||
|     - name: Checkout code | ||||
|       uses: actions/checkout@v2 | ||||
|     - name: Test | ||||
|       run: go test -cover -coverprofile=c.out -covermode=atomic -race -v ./... | ||||
|     - name: Upload Codeclimate Coverage | ||||
|       uses: paambaati/codeclimate-action@v2.7.5 | ||||
|       with: | ||||
|         prefix: github.com/echo-go/dto-lib/ | ||||
|         coverageLocations: ${{ github.workspace }}/c.out:gocov | ||||
|       env: | ||||
|         CC_TEST_REPORTER_ID: ${{ secrets.CODE_CLIMATE_REPORTER_ID }} | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user