Browse Source

chore: update github actions

代强 2 years ago
parent
commit
145f0b077b
1 changed files with 5 additions and 1 deletions
  1. 5 1
      .github/workflows/performance.yaml

+ 5 - 1
.github/workflows/performance.yaml

@@ -2,6 +2,10 @@ name: performance
 
 
 on:
 on:
   workflow_dispatch:
   workflow_dispatch:
+    inputs:
+      test_component_name:
+        description: 'Input Component Name to test performance, input all to test all'
+        required: false
 
 
 jobs:
 jobs:
   performance:
   performance:
@@ -10,7 +14,7 @@ jobs:
       - run: |
       - run: |
           wget https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/performance/main
           wget https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/performance/main
           chmod +x ./main
           chmod +x ./main
-          ./main --mode=all
+          ./main --mode=diffComponent --componentName=${{ github.event.inputs.test_component_name }}
         env:
         env:
           TOS_PASSWD: ${{ secrets.TOS_PASSWD }}
           TOS_PASSWD: ${{ secrets.TOS_PASSWD }}
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}