Skip to content

Commit

Permalink
chore: skip problematic component tests that fail on contributor PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
AtofStryker committed Jun 2, 2023
1 parent bd408f2 commit a8fc36f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .circleci/workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -573,14 +573,15 @@ commands:
# To make `circleci tests` work correctly, we need to step into the package folder.
cd packages/<<parameters.package>>
GLOB="cypress/e2e/**/*cy.*"
if [[ <<parameters.type>> == 'ct' ]]; then
# component tests are located side by side with the source codes.
GLOB="src/**/*cy.*"
# for the app component tests, ignore specs that are known to cause failures on contributor PRs (see https://discuss.circleci.com/t/how-to-exclude-certain-files-from-circleci-test-globbing/41028)
TESTFILES=$(find src -regextype posix-extended -name '*.cy.*' -not -regex '.*(FileMatch|PromoAction|SelectorPlayground).cy.*' | circleci tests split --total=$CIRCLE_NODE_TOTAL)
else
GLOB="cypress/e2e/**/*cy.*"
TESTFILES=$(circleci tests glob "$GLOB" | circleci tests split --total=$CIRCLE_NODE_TOTAL)
fi
TESTFILES=$(circleci tests glob "$GLOB" | circleci tests split --total=$CIRCLE_NODE_TOTAL)
echo "Test files for this machine are $TESTFILES"
# To run the `yarn` command, we need to walk out of the package folder.
Expand Down

0 comments on commit a8fc36f

Please sign in to comment.