From 863e78b29c8d62c810be2f2e2537531c613b0724 Mon Sep 17 00:00:00 2001 From: zirain Date: Mon, 29 Jul 2024 14:28:14 +0800 Subject: [PATCH] fix github action Signed-off-by: zirain --- .github/workflows/code-check.yaml | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/.github/workflows/code-check.yaml b/.github/workflows/code-check.yaml index fd882baa71..e3ba626c9f 100644 --- a/.github/workflows/code-check.yaml +++ b/.github/workflows/code-check.yaml @@ -4,37 +4,30 @@ on: push: branches: - "main" + pull_request: + branches: + - "main" permissions: contents: read jobs: - lint: + build-check: name: lint runs-on: ubuntu-latest steps: + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 # enable modules that needed by Istio Dual Stack - run: make lint - - test: - name: test - runs-on: ubuntu-latest - needs: lint - steps: - run: make test - - build: - name: build - runs-on: ubuntu-latest - needs: test - steps: - run: make build docker: name: docker runs-on: ubuntu-latest - needs: build + needs: build-check env: HUB: ghcr.io/istio-ecosystem steps: - - run: make docker \ No newline at end of file + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + - run: make docker