Skip to content

Commit

Permalink
build: πŸ“¦ skip cypress tests when no tests to avoid error
Browse files Browse the repository at this point in the history
  • Loading branch information
yjaaidi committed Nov 3, 2023
1 parent c686604 commit 2ab4f9d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tools/cascade-changes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,13 @@ for CURRENT in $*; do
if [ "$SKIP_TESTS" != "true" ]
then
pnpm install
pnpm nx run-many -t component-test,test
pnpm nx run-many --target test

# Run component tests if `cy.ts` files exist.
if [ $(find apps libs -name '*.cy.ts' | wc -l) -gt 0 ]
then
pnpm nx run-many --target component-test
fi
fi

PARENT_BRANCH="$CURRENT"
Expand Down

0 comments on commit 2ab4f9d

Please sign in to comment.