NO-ISSUE: chore(gha): run tests in a gha when gha itself is modified … #424
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
name: Run ODH Notebook Controller unit tests | |
on: | |
push: | |
pull_request: | |
branches: | |
- main | |
- v1.9-branch | |
paths: | |
- .github/workflows/odh_notebook_controller_unit_test.yaml | |
- 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 | |
- name: Upload results to Codecov | |
uses: codecov/codecov-action@v5 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./components/odh-notebook-controller/cover-rbac-false.out,./components/odh-notebook-controller/cover-rbac-true.out | |
disable_search: true |