Skip to content

[+] add test coverage statistics, closes #273 #274

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Sep 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 7 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ jobs:
# PGPASSWORD=somestrong psql --username=scheduler --host=localhost --list timetable

- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Golang
uses: actions/setup-go@v4
Expand All @@ -144,24 +144,18 @@ jobs:
go build
go test -failfast -v -timeout=300s -p 1 -coverprofile=profile.cov ./...

- name: Coveralls
uses: shogo82148/actions-goveralls@v1
with:
working-directory: src
path-to-profile: profile.cov

- name: GolangCI-Lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
working-directory: src

# - name: Convert coverage to lcov
# uses: jandelgado/gcov2lcov-action@v1.0.8
# with:
# infile: profile.cov
# outfile: coverage.lcov

# - name: Coveralls
# uses: coverallsapp/github-action@master
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# path-to-lcov: coverage.lcov

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
[![Go Build & Test](https://github.com/cybertec-postgresql/pgwatch3/actions/workflows/build.yml/badge.svg)](https://github.com/cybertec-postgresql/pgwatch3/actions/workflows/build.yml)
[![Coverage Status](https://coveralls.io/repos/github/cybertec-postgresql/pgwatch3/badge.svg?branch=master&service=github)](https://coveralls.io/github/cybertec-postgresql/pgwatch3?branch=master)


# pgwatch3 WIP. Please do not use it in production!

This is the next generation of [pgwatch2](https://github.com/cybertec-postgresql/pgwatch2/).
Expand Down