Skip to content

Commit

Permalink
chore: add GitHub action for ODH Notebook Controller unit tests
Browse files Browse the repository at this point in the history
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
jiridanek authored and openshift-cherrypick-robot committed Apr 12, 2024
1 parent daac703 commit 7da4377
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/notebook_controller_unit_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:
- name: Run unit tests
run: |
cd components/notebook-controller
make test
make test
26 changes: 26 additions & 0 deletions .github/workflows/odh_notebook_controller_unit_test.yaml
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

0 comments on commit 7da4377

Please sign in to comment.