From f157f3f72ee388970861c31557ba624663d1a2c1 Mon Sep 17 00:00:00 2001 From: laixintao Date: Sun, 8 Oct 2023 08:56:08 +0800 Subject: runs test on main branch as well. (#1429) * runs test on main branch as well. reasons: - tests passed on PR branches do not mean they will pass on main branch, for e.g. alice changed A in branch-a, bob changed B in branch-b, both tests passed and no conflict, but after merged to main, a bug occurs. - wanna fix the badge in main branch ;D * change the badge status to main branch only. --- .github/workflows/ci.yml | 3 +++ README.rst | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index be99c1ad..8ac19111 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,9 @@ name: pgcli on: + push: + branches: + - main pull_request: paths-ignore: - '**.rst' diff --git a/README.rst b/README.rst index e624e141..1369f215 100644 --- a/README.rst +++ b/README.rst @@ -373,8 +373,8 @@ interface to Postgres database. Thanks to all the beta testers and contributors for your time and patience. :) -.. |Build Status| image:: https://github.com/dbcli/pgcli/workflows/pgcli/badge.svg - :target: https://github.com/dbcli/pgcli/actions?query=workflow%3Apgcli +.. |Build Status| image:: https://github.com/dbcli/pgcli/actions/workflows/ci.yml/badge.svg?branch=main + :target: https://github.com/dbcli/pgcli/actions/workflows/ci.yml .. |CodeCov| image:: https://codecov.io/gh/dbcli/pgcli/branch/master/graph/badge.svg :target: https://codecov.io/gh/dbcli/pgcli -- cgit v1.2.3