Skip to content

Commit 67d1b4b

Browse files
authored
compile coverage report and add badges. (zalando#1218)
Add GH badges, and added coveralls support again.
1 parent 65d1a71 commit 67d1b4b

File tree

3 files changed

+36
-1
lines changed

3 files changed

+36
-1
lines changed

.github/workflows/run_e2e.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: ubuntu
1+
name: operator-e2e-tests
22

33
on:
44
pull_request:
@@ -8,6 +8,7 @@ on:
88

99
jobs:
1010
tests:
11+
name: End-2-End tests
1112
runs-on: ubuntu-latest
1213
steps:
1314
- uses: actions/checkout@v1

.github/workflows/run_tests.yaml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: operator-tests
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
tests:
11+
name: Unit tests and coverage
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v1
15+
- uses: actions/setup-go@v2
16+
with:
17+
go-version: "^1.15.5"
18+
- name: Make dependencies
19+
run: make deps
20+
- name: Compile
21+
run: make linux
22+
- name: Run unit tests
23+
run: go test -race -covermode atomic -coverprofile=coverage.out ./...
24+
- name: Convert coverage to lcov
25+
uses: jandelgado/[email protected]
26+
- name: Coveralls
27+
uses: coverallsapp/github-action@master
28+
with:
29+
github-token: ${{ secrets.GITHUB_TOKEN }}
30+
path-to-lcov: coverage.lcov

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Postgres Operator
22

3+
![Tests](https://github.com/zalando/postgres-operator/workflows/operator-tests/badge.svg)
4+
![E2E Tests](https://github.com/zalando/postgres-operator/workflows/operator-e2e-tests/badge.svg)
5+
[![Coverage Status](https://coveralls.io/repos/github/zalando/postgres-operator/badge.svg?branch=master)](https://coveralls.io/github/zalando/postgres-operator?branch=master)
6+
37
<img src="docs/diagrams/logo.png" width="200">
48

59
The Postgres Operator delivers an easy to run highly-available [PostgreSQL](https://www.postgresql.org/)

0 commit comments

Comments
 (0)