diff --git a/.github/workflows/notebook_controller_unit_test.yaml b/.github/workflows/notebook_controller_unit_test.yaml index bac798c5751..39b8e770b8d 100644 --- a/.github/workflows/notebook_controller_unit_test.yaml +++ b/.github/workflows/notebook_controller_unit_test.yaml @@ -23,4 +23,4 @@ jobs: - name: Run unit tests run: | cd components/notebook-controller - make test \ No newline at end of file + make test diff --git a/.github/workflows/odh_notebook_controller_unit_test.yaml b/.github/workflows/odh_notebook_controller_unit_test.yaml new file mode 100644 index 00000000000..a8bbf5a5fe5 --- /dev/null +++ b/.github/workflows/odh_notebook_controller_unit_test.yaml @@ -0,0 +1,26 @@ +name: Run ODH Notebook Controller unit tests +on: + push: + pull_request: + paths: + - components/odh-notebook-controller/** + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install Go + uses: actions/setup-go@v5 + with: + check-latest: true + go-version-file: components/odh-notebook-controller/go.mod + cache-dependency-path: components/odh-notebook-controller/go.sum + + - name: Run unit tests + run: | + cd components/odh-notebook-controller + make test