enhance: [2.4] RBAC Custom Privilege Group API #1077
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unittest | |
on: | |
push: | |
paths: | |
- 'common/**' | |
- 'client/**' | |
- 'entity/**' | |
- 'internal/**' | |
# Triggers the workflow on push or pull request events but only for the master branch | |
pull_request: | |
paths: | |
- 'common/**' | |
- 'client/**' | |
- 'entity/**' | |
- 'internal/**' | |
jobs: | |
# This workflow contains a single job called "build" | |
build: | |
name: Unittest AMD64 Ubuntu ${{ matrix.ubuntu }} | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
strategy: | |
fail-fast: false | |
matrix: | |
ubuntu: [18.04] | |
env: | |
UBUNTU: ${{ matrix.ubuntu }} | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v2 | |
# Runs a single command using the runners shell | |
- name: Run Unittest | |
run: make test-go | |
- name: Upload coverage to Codecov | |
if: github.repository == 'milvus-io/milvus-sdk-go' | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./coverage.project.out | |
name: ubuntu-${{ matrix.ubuntu }}-unittests | |