Skip to content

Commit

Permalink
feat(ci): Run e2e when a label exist (#5512)
Browse files Browse the repository at this point in the history
* feat(ci): Run e2e when a label exist

* feat(ci): Condition update
  • Loading branch information
AliaksandrRyzhou authored May 7, 2024
1 parent 531ba2d commit 3793bff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:
name: Test Web Cypress
needs: [get-affected]
# if: ${{ contains(fromJson(needs.get-affected.outputs.test-cypress), '@novu/web') }}
if: false
if: contains(github.event.pull_request.labels.*.name, 'run-e2e')
uses: ./.github/workflows/reusable-web-e2e.yml
secrets: inherit
with:
Expand All @@ -107,7 +107,7 @@ jobs:
uses: ./.github/workflows/reusable-widget-e2e.yml
with:
ee: true
if: false
if: contains(github.event.pull_request.labels.*.name, 'run-e2e')
# if: ${{ contains(fromJson(needs.get-affected.outputs.test-cypress), '@novu/widget') || contains(fromJson(needs.get-affected.outputs.test-unit), '@novu/notification-center') || contains(fromJson(needs.get-affected.outputs.test-unit), '@novu/ws') }}
secrets: inherit

Expand Down Expand Up @@ -181,7 +181,7 @@ jobs:
test_unit_api:
name: Test API
needs: [get-affected]
if: false
if: contains(github.event.pull_request.labels.*.name, 'run-e2e')
strategy:
# The order is important for ee to be first, otherwise outputs not work correctly
matrix:
Expand Down

0 comments on commit 3793bff

Please sign in to comment.