Skip to content

Commit

Permalink
ci(root): remove redundant API unit test (#6678)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChmaraX authored Oct 11, 2024
1 parent db33f89 commit 3671e95
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/on-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ jobs:
test-e2e-affected: ${{ contains(fromJson(needs.get-affected.outputs.test-e2e), '@novu/api') || contains(fromJson(needs.get-affected.outputs.test-e2e), '@novu/worker') }}
test-e2e-ee-affected: ${{ contains(fromJson(needs.get-affected.outputs.test-e2e-ee), '@novu/api') || contains(fromJson(needs.get-affected.outputs.test-e2e-ee), '@novu/worker') }}
job-name: ${{ matrix.name }}
test-unit: false
secrets: inherit

test_e2e_web:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/reusable-api-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ on:
required: false
default: true
type: boolean
test-unit:
description: 'detect if we should run unit tests'
required: false
default: true
type: boolean
ee:
description: 'use the ee version of api'
required: false
Expand Down Expand Up @@ -117,6 +122,7 @@ jobs:
run: sudo kill -9 $(sudo lsof -t -i:1342)

- name: Run unit tests
if: inputs.test-unit
run: |
cd apps/api && pnpm test
Expand Down

0 comments on commit 3671e95

Please sign in to comment.