From 5cc31d20a7c1e5d996eaa8b95c7bcc85ed87d39a Mon Sep 17 00:00:00 2001 From: leonz789 Date: Mon, 13 Jan 2025 14:25:28 +0800 Subject: [PATCH] separate job --- .github/workflows/test.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 250975a4..d1c5ca6e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -43,5 +43,22 @@ jobs: - name: Test and create coverage report run: | make test-unit-cover + if: env.GIT_DIFF + test-unit-e2e: + runs-on: ubuntu-latest + steps: + - uses: actions/setup-go@v4 + with: + go-version: '1.21' + check-latest: true + - uses: actions/checkout@v4 + - uses: technote-space/get-diff-action@v6.1.2 + with: + PATTERNS: | + **/**.go + go.mod + go.sum + - name: Test and create coverage report + run: | make test-unit-e2e if: env.GIT_DIFF