java_sdk_ci_test.yaml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. name: Java sdk CI test
  2. on:
  3. workflow_dispatch:
  4. push:
  5. branches: [ master ]
  6. jobs:
  7. build:
  8. name: Deploy milvus server,build and test
  9. runs-on: ubuntu-latest
  10. steps:
  11. - uses: actions/checkout@v2
  12. - name: Deploy Milvus
  13. timeout-minutes: 15
  14. shell: bash
  15. working-directory: tests/milvustest/src/test/java/resources
  16. run: |
  17. echo "deploy milvus"
  18. ls
  19. sudo docker-compose up -d
  20. - name: Build jar
  21. timeout-minutes: 30
  22. shell: bash
  23. working-directory:
  24. run: |
  25. echo "build jar"
  26. git submodule update --init
  27. mvn clean install -Dmaven.test.skip=true
  28. - name: Test
  29. timeout-minutes: 60
  30. shell: bash
  31. working-directory: tests/milvustest
  32. run: |
  33. echo "run testcases"
  34. mvn clean test -DsuiteXmlFile=testng.xml
  35. - name: Upload logs
  36. if: ${{ always() }}
  37. uses: actions/upload-artifact@v2
  38. with:
  39. name: logs-java-sdk-ci-test
  40. path: |
  41. tests/milvustest/target/surefire-reports
  42. tests/milvustest/target/allure-results