-
Notifications
You must be signed in to change notification settings - Fork 165
49 lines (42 loc) · 1.2 KB
/
java_sdk_ci_test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Java sdk CI test
on:
workflow_dispatch:
pull_request:
jobs:
build:
name: Deploy milvus server,build and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Deploy Milvus
timeout-minutes: 15
shell: bash
working-directory: tests/milvustestv2/src/test/java/resources
run: |
echo "deploy milvus"
ls
sudo docker compose up -d
- name: Build jar
timeout-minutes: 30
shell: bash
working-directory:
run: |
echo "build jar"
git submodule update --init
mvn clean versions:set -DnewVersion=2.4.0
mvn clean install -Dmaven.test.skip=true
- name: Test
timeout-minutes: 60
shell: bash
working-directory: tests/milvustestv2
run: |
echo "run testcases"
mvn clean test -Dsurefire.suiteXmlFiles=testng.xml
# - name: Upload logs
# if: ${{ always() }}
# uses: actions/upload-artifact@v2
# with:
# name: logs-java-sdk-ci-test
# path: |
# tests/milvustestv2/target/surefire-reports
# tests/milvustestv2/target/allure-results