From d9aaec4581028ef82222c3e6fb93b16fb5d0261c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jiri=20Dan=C4=9Bk?= Date: Thu, 11 Apr 2024 15:22:36 +0200 Subject: [PATCH] chore: add GitHub action for ODH Notebook Controller unit tests This commit introduces a new GitHub action workflow specifically for running unit tests against the ODH Notebook Controller. It's configured to run on both push and pull requests events, ensuring that all code changes are thoroughly tested. --- .../notebook_controller_unit_test.yaml | 2 +- .../odh_notebook_controller_unit_test.yaml | 26 +++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/odh_notebook_controller_unit_test.yaml 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