forked from kubeflow/kubeflow
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
2 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,4 +20,4 @@ jobs: | |
- name: Run unit tests | ||
run: | | ||
cd components/notebook-controller | ||
make test | ||
make test |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |