github.com/milvus-io/milvus-sdk-go/v2@v2.4.1/.github/workflows/main.yml (about) 1 name: Unittest 2 3 on: 4 push: 5 paths: 6 - 'common/**' 7 - 'client/**' 8 - 'entity/**' 9 - 'internal/**' 10 # Triggers the workflow on push or pull request events but only for the master branch 11 pull_request: 12 paths: 13 - 'common/**' 14 - 'client/**' 15 - 'entity/**' 16 - 'internal/**' 17 18 19 jobs: 20 # This workflow contains a single job called "build" 21 build: 22 name: Unittest AMD64 Ubuntu ${{ matrix.ubuntu }} 23 # The type of runner that the job will run on 24 runs-on: ubuntu-latest 25 timeout-minutes: 30 26 strategy: 27 fail-fast: false 28 matrix: 29 ubuntu: [18.04] 30 env: 31 UBUNTU: ${{ matrix.ubuntu }} 32 steps: 33 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it 34 - uses: actions/checkout@v2 35 # Runs a single command using the runners shell 36 - name: Run Unittest 37 run: make test-go 38 - name: Upload coverage to Codecov 39 if: github.repository == 'milvus-io/milvus-sdk-go' 40 uses: codecov/codecov-action@v4 41 with: 42 token: ${{ secrets.CODECOV_TOKEN }} 43 file: ./coverage.project.out 44 name: ubuntu-${{ matrix.ubuntu }}-unittests 45