We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a4bfcf commit be3aa8aCopy full SHA for be3aa8a
2 files changed
.github/workflows/release.yaml
@@ -16,10 +16,6 @@ jobs:
16
- uses: actions/checkout@v4
17
with:
18
fetch-depth: 0
19
- - name: Refresh models catalog
20
- run: |
21
- git fetch --depth 1 https://github.com/router-for-me/models.git main
22
- git show FETCH_HEAD:models.json > internal/registry/models/models.json
23
- run: git fetch --force --tags
24
- uses: actions/setup-go@v4
25
internal/registry/model_updater_test.go
@@ -0,0 +1,13 @@
1
+package registry
2
+
3
+import "testing"
4
5
+func TestEmbeddedModelsCatalogPassesStartupValidation(t *testing.T) {
6
+ if len(embeddedModelsJSON) == 0 {
7
+ t.Fatal("embedded models catalog is empty")
8
+ }
9
10
+ if err := loadModelsFromBytes(embeddedModelsJSON, "test"); err != nil {
11
+ t.Fatalf("embedded models catalog should pass startup validation: %v", err)
12
13
+}
0 commit comments