compile coverage report and add badges. (#1218)
Add GH badges, and added coveralls support again.
This commit is contained in:
parent
65d1a71cc9
commit
67d1b4b167
|
|
@ -1,4 +1,4 @@
|
|||
name: ubuntu
|
||||
name: operator-e2e-tests
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
|
@ -8,6 +8,7 @@ on:
|
|||
|
||||
jobs:
|
||||
tests:
|
||||
name: End-2-End tests
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
|
|
|
|||
|
|
@ -0,0 +1,30 @@
|
|||
name: operator-tests
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
name: Unit tests and coverage
|
||||
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,9 @@
|
|||
# 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