performance.yaml 886 B

12345678910111213141516171819202122232425262728293031
  1. name: performance
  2. on:
  3. workflow_dispatch:
  4. inputs:
  5. test_component_name:
  6. description: 'Input Component Name to test performance, input all to test all'
  7. required: false
  8. jobs:
  9. performance:
  10. runs-on: ubuntu-latest
  11. steps:
  12. - run: |
  13. wget https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/performance/main
  14. chmod +x ./main
  15. ./main --mode=diffComponent --component=${{ github.event.inputs.test_component_name }}
  16. tar -zcvf data.tar.gz data.db
  17. env:
  18. TOS_PASSWD: ${{ secrets.TOS_PASSWD }}
  19. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  20. - uses: actions/upload-artifact@v3
  21. with:
  22. name: data.tar.gz
  23. path: ./data.tar.gz
  24. - uses: actions/upload-artifact@v3
  25. with:
  26. name: diffResult.txt
  27. path: ./diffResult.txt