Skip to content

Commit d9aaec4

Browse files
committed
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.
1 parent ac76291 commit d9aaec4

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

.github/workflows/notebook_controller_unit_test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ jobs:
2323
- name: Run unit tests
2424
run: |
2525
cd components/notebook-controller
26-
make test
26+
make test
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Run ODH Notebook Controller unit tests
2+
on:
3+
push:
4+
pull_request:
5+
paths:
6+
- components/odh-notebook-controller/**
7+
workflow_dispatch:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Install Go
17+
uses: actions/setup-go@v5
18+
with:
19+
check-latest: true
20+
go-version-file: components/odh-notebook-controller/go.mod
21+
cache-dependency-path: components/odh-notebook-controller/go.sum
22+
23+
- name: Run unit tests
24+
run: |
25+
cd components/odh-notebook-controller
26+
make test

0 commit comments

Comments
 (0)