fix: return 404 in artifact creation on non existing model version (#… #9
This file contains hidden or 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: Test Controller | |
| on: | |
| push: | |
| branches: | |
| - "main" | |
| paths-ignore: | |
| - "LICENSE*" | |
| - "**.gitignore" | |
| - "**.md" | |
| - "**.txt" | |
| - ".github/ISSUE_TEMPLATE/**" | |
| - ".github/dependabot.yml" | |
| - "docs/**" | |
| pull_request: | |
| paths: | |
| - "cmd/controller/**" | |
| - ".github/workflows/**" | |
| - "internal/controller/**" | |
| - "internal/server/openapi/api_model_registry_service*" | |
| - "pkg/openapi/**" | |
| - "go.mod" | |
| permissions: # set contents: read at top-level, per OpenSSF ScoreCard rule TokenPermissionsID | |
| contents: read | |
| env: | |
| BRANCH: ${{ github.base_ref }} | |
| jobs: | |
| test: | |
| name: Run on Ubuntu | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Clone the code | |
| uses: actions/[email protected] | |
| - name: Setup Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: '1.24' | |
| - name: Running Tests | |
| run: | | |
| go mod tidy | |
| make controller/test |