File tree Expand file tree Collapse file tree 1 file changed +35
-2
lines changed Expand file tree Collapse file tree 1 file changed +35
-2
lines changed Original file line number Diff line number Diff line change @@ -749,6 +749,32 @@ jobs:
749
749
- run : node dist/libs/remix-tests/bin/remix-tests ./libs/remix-tests/tests/examples_0/assert_ok_test.sol
750
750
- run : yarn run test:libs
751
751
752
+
753
+ check-flaky-or-pr-tests :
754
+ docker :
755
+ - image : cimg/node:20.0.0-browsers
756
+ working_directory : ~/remix-project
757
+ parameters :
758
+ tag :
759
+ type : string
760
+ steps :
761
+ - checkout
762
+ - restore_cache :
763
+ keys :
764
+ - v1-deps-{{ checksum "yarn.lock" }}
765
+ - run : yarn
766
+ - run : yarn run build:e2e
767
+ - run :
768
+ name : Check for enabled tests matching tag
769
+ command : |
770
+ echo "🔍 Searching for enabled tests with .$<< parameters.tag >> extension..."
771
+ if grep -IRiL "'@disabled': \?true" "dist/apps/remix-ide-e2e/src/tests" | grep "\.${<< parameters.tag >>}"; then
772
+ echo "✅ Found enabled .$<< parameters.tag >> tests."
773
+ exit 0
774
+ else
775
+ echo "⚠️ No enabled .$<< parameters.tag >> tests found. Skipping workflow."
776
+ exit 1
777
+
752
778
remix-ide-browser :
753
779
docker :
754
780
- image : cimg/node:20.18.3-browsers
@@ -978,7 +1004,11 @@ workflows:
978
1004
run_pr_tests :
979
1005
when : << pipeline.parameters.run_pr_tests >>
980
1006
jobs :
981
- - build
1007
+ - check-flaky-or-pr-tests :
1008
+ tag : " pr"
1009
+ - build :
1010
+ requires :
1011
+ - check-flaky-or-pr-tests
982
1012
- remix-ide-browser :
983
1013
requires :
984
1014
- build
@@ -994,7 +1024,10 @@ workflows:
994
1024
run_flaky_tests :
995
1025
when : << pipeline.parameters.run_flaky_tests >>
996
1026
jobs :
997
- - build
1027
+ - check-flaky-or-pr-tests
1028
+ - build :
1029
+ requires :
1030
+ - check-flaky-or-pr-tests
998
1031
- remix-ide-browser :
999
1032
requires :
1000
1033
- build
You can’t perform that action at this time.
0 commit comments