From 5592e295bc5ded04c635ba5d8aff8b111ee298fa Mon Sep 17 00:00:00 2001 From: zirain Date: Mon, 29 Jul 2024 16:25:27 +0800 Subject: [PATCH] fix github action (#2) 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