From 0baf768e06e9906fa1e5ea21c25d1e9683ae079f Mon Sep 17 00:00:00 2001 From: "Giau. Tran Minh" <12751435+giautm@users.noreply.github.com> Date: Mon, 5 Feb 2024 15:53:24 +0700 Subject: [PATCH] .github/workflows: run chart test on PR (#137) --- .github/workflows/push-chart.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/push-chart.yaml b/.github/workflows/push-chart.yaml index bc6ae7cd..6e4a3aec 100644 --- a/.github/workflows/push-chart.yaml +++ b/.github/workflows/push-chart.yaml @@ -12,14 +12,18 @@ # See the License for the specific language governing permissions and # limitations under the License. -name: Push Helm +name: Helm on: push: branches: - master + pull_request: + branches: + - master workflow_dispatch: jobs: helm-test: + name: Test runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -43,7 +47,9 @@ jobs: exit 1 fi helm-push: + name: Push to ghcr.io needs: [helm-test] + if: ${{ github.event_name == 'push' }} runs-on: ubuntu-latest defaults: run: