-
Notifications
You must be signed in to change notification settings - Fork 40
50 lines (43 loc) · 1.26 KB
/
check.yml
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
50
name: Milvus2 Node sdk check when open pr
on:
pull_request:
branches:
- main
- 2.4
types: [opened, synchronize]
push:
branches:
- main
- 2.4
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Read package.json
uses: jaywcjlove/github-action-package@main
id: info
- name: Show target Milvus version
run: echo "Milvus Version is ${{ steps.info.outputs.milvusVersion }}"
- name: Run target Milvus
run: |
wget https://raw.githubusercontent.com/milvus-io/milvus/master/deployments/docker/standalone/docker-compose.yml -O docker-compose.yml
sed -i -e "s/milvusdb.*$/milvusdb\/milvus:${{ steps.info.outputs.milvusVersion }}/g" docker-compose.yml
docker-compose up -d
- name: update submodules
run: |
git submodule init
yarn pre
- name: Run Test coverage
run: |
yarn
yarn build-test
yarn coverage
- name: send to codecov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: bash <(curl -s https://codecov.io/bash)