Skip to content

Commit

Permalink
skip test report from fork PR (#778)
Browse files Browse the repository at this point in the history
Co-authored-by: khanhtranduy <[email protected]>
  • Loading branch information
khanhtrand and khanhtranduy authored Jul 12, 2024
1 parent 0ac2b7a commit f345937
Show file tree
Hide file tree
Showing 14 changed files with 42 additions and 14 deletions.
4 changes: 3 additions & 1 deletion .github/workflow-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ jobs:
run: mvn test -f {{SERVICE_NAME}}
- name: Unit Test Results
uses: dorny/test-reporter@v1
if: success() || failure()
if: |
${{ github.event.pull_request.head.repo.full_name == github.repository || github.ref == 'refs/heads/main' }} &&
(success() || failure())
with:
name: Unit-Test-Results
path: "{{SERVICE_NAME}}/**/surefire-reports/*.xml"
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/cart-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ jobs:
run: mvn test -pl cart -am
- name: Unit Test Results
uses: dorny/test-reporter@v1
if: success() || failure()
if: |
${{ github.event.pull_request.head.repo.full_name == github.repository || github.ref == 'refs/heads/main' }} &&
(success() || failure())
with:
name: Cart-Service-Unit-Test-Results
path: "cart/**/surefire-reports/*.xml"
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/customer-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ jobs:
run: mvn test -f customer
- name: Unit Test Results
uses: dorny/test-reporter@v1
if: success() || failure()
if: |
${{ github.event.pull_request.head.repo.full_name == github.repository || github.ref == 'refs/heads/main' }} &&
(success() || failure())
with:
name: Customer-Service-Unit-Test-Results
path: "customer/**/surefire-reports/*.xml"
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/inventory-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ jobs:
run: mvn test -f inventory
- name: Unit Test Results
uses: dorny/test-reporter@v1
if: success() || failure()
if: |
${{ github.event.pull_request.head.repo.full_name == github.repository || github.ref == 'refs/heads/main' }} &&
(success() || failure())
with:
name: Inventory-Service-Unit-Test-Results
path: "inventory/**/surefire-reports/*.xml"
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/location-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ jobs:
run: mvn test -f location
- name: Unit Test Results
uses: dorny/test-reporter@v1
if: success() || failure()
if: |
${{ github.event.pull_request.head.repo.full_name == github.repository || github.ref == 'refs/heads/main' }} &&
(success() || failure())
with:
name: Location-Service-Unit-Test-Results
path: "location/**/surefire-reports/*.xml"
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/media-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ jobs:
run: mvn test -f media
- name: Unit Test Results
uses: dorny/test-reporter@v1
if: success() || failure()
if: |
${{ github.event.pull_request.head.repo.full_name == github.repository || github.ref == 'refs/heads/main' }} &&
(success() || failure())
with:
name: Media-Service-Unit-Test-Results
path: "media/**/surefire-reports/*.xml"
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/order-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ jobs:
run: mvn test -pl order -am
- name: Unit Test Results
uses: dorny/test-reporter@v1
if: success() || failure()
if: |
${{ github.event.pull_request.head.repo.full_name == github.repository || github.ref == 'refs/heads/main' }} &&
(success() || failure())
with:
name: Order-Service-Unit-Test-Results
path: "order/**/surefire-reports/*.xml"
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/payment-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ jobs:
run: mvn test -pl payment -am
- name: Unit Test Results
uses: dorny/test-reporter@v1
if: success() || failure()
if: |
${{ github.event.pull_request.head.repo.full_name == github.repository || github.ref == 'refs/heads/main' }} &&
(success() || failure())
with:
name: Payment-Service-Unit-Test-Results
path: "payment/**/surefire-reports/*.xml"
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/payment-paypal-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ jobs:
run: mvn test -f payment-paypal
- name: Unit Test Results
uses: dorny/test-reporter@v1
if: success() || failure()
if: |
${{ github.event.pull_request.head.repo.full_name == github.repository || github.ref == 'refs/heads/main' }} &&
(success() || failure())
with:
name: Payment-Paypal-Unit-Test-Results
path: "payment-paypal/**/surefire-reports/*.xml"
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/product-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ jobs:
run: mvn test -pl product -am
- name: Unit Test Results
uses: dorny/test-reporter@v1
if: success() || failure()
if: |
${{ github.event.pull_request.head.repo.full_name == github.repository || github.ref == 'refs/heads/main' }} &&
(success() || failure())
with:
name: Product-Service-Unit-Test-Results
path: "product/**/surefire-reports/*.xml"
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/promotion-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ jobs:
run: mvn test -f promotion
- name: Unit Test Results
uses: dorny/test-reporter@v1
if: success() || failure()
if: |
${{ github.event.pull_request.head.repo.full_name == github.repository || github.ref == 'refs/heads/main' }} &&
(success() || failure())
with:
name: Promotion-Service-Unit-Test-Results
path: "promotion/**/surefire-reports/*.xml"
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/rating-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ jobs:
run: mvn test -f rating
- name: Unit Test Results
uses: dorny/test-reporter@v1
if: success() || failure()
if: |
${{ github.event.pull_request.head.repo.full_name == github.repository || github.ref == 'refs/heads/main' }} &&
(success() || failure())
with:
name: Rating-Service-Unit-Test-Results
path: "rating/**/surefire-reports/*.xml"
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/search-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ jobs:
run: mvn test -f search
- name: Unit Test Results
uses: dorny/test-reporter@v1
if: success() || failure()
if: |
${{ github.event.pull_request.head.repo.full_name == github.repository || github.ref == 'refs/heads/main' }} &&
(success() || failure())
with:
name: Search-Service-Unit-Test-Results
path: "search/**/surefire-reports/*.xml"
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/tax-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ jobs:
run: mvn test -f tax
- name: Unit Test Results
uses: dorny/test-reporter@v1
if: success() || failure()
if: |
${{ github.event.pull_request.head.repo.full_name == github.repository || github.ref == 'refs/heads/main' }} &&
(success() || failure())
with:
name: Tax-Service-Unit-Test-Results
path: "tax/**/surefire-reports/*.xml"
Expand Down

0 comments on commit f345937

Please sign in to comment.