compile coverage report and add badges.
This commit is contained in:
		
							parent
							
								
									65d1a71cc9
								
							
						
					
					
						commit
						263eb2422a
					
				| 
						 | 
				
			
			@ -1,4 +1,4 @@
 | 
			
		|||
name: ubuntu
 | 
			
		||||
name: operator-tests
 | 
			
		||||
 | 
			
		||||
on: 
 | 
			
		||||
  pull_request:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -0,0 +1,29 @@
 | 
			
		|||
name: operator-e2e-tests
 | 
			
		||||
 | 
			
		||||
on: 
 | 
			
		||||
  pull_request:
 | 
			
		||||
  push:
 | 
			
		||||
    branches:
 | 
			
		||||
    - master
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  tests:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@v1
 | 
			
		||||
    - uses: actions/setup-go@v2
 | 
			
		||||
      with:
 | 
			
		||||
          go-version: "^1.15.5"
 | 
			
		||||
    - name: Make dependencies
 | 
			
		||||
      run: make deps
 | 
			
		||||
    - name: Compile
 | 
			
		||||
      run: make linux
 | 
			
		||||
    - name: Run unit tests
 | 
			
		||||
      run: go test -race -covermode atomic -coverprofile=coverage.out ./...
 | 
			
		||||
    - name: Convert coverage to lcov
 | 
			
		||||
      uses: jandelgado/gcov2lcov-action@v1.0.5
 | 
			
		||||
    - name: Coveralls
 | 
			
		||||
      uses: coverallsapp/github-action@master
 | 
			
		||||
      with:
 | 
			
		||||
        github-token: ${{ secrets.GITHUB_TOKEN }}
 | 
			
		||||
        path-to-lcov: coverage.lcov
 | 
			
		||||
| 
						 | 
				
			
			@ -1,5 +1,11 @@
 | 
			
		|||
# Postgres Operator
 | 
			
		||||
 | 
			
		||||

 | 
			
		||||
 | 
			
		||||

 | 
			
		||||
 | 
			
		||||
[](https://coveralls.io/github/zalando/postgres-operator?branch=master)
 | 
			
		||||
 | 
			
		||||
<img src="docs/diagrams/logo.png" width="200">
 | 
			
		||||
 | 
			
		||||
The Postgres Operator delivers an easy to run highly-available [PostgreSQL](https://www.postgresql.org/)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue