]> git.ipfire.org Git - thirdparty/google/fonts.git/commitdiff
Find database in correct location 9295/head
authorSimon Cozens <simon@simon-cozens.org>
Wed, 2 Apr 2025 10:36:48 +0000 (11:36 +0100)
committerSimon Cozens <simon@simon-cozens.org>
Wed, 2 Apr 2025 10:36:48 +0000 (11:36 +0100)
.ci/fontspector-dashboard/src/results.json.js
.github/workflows/fontspectorall.yaml

index 3c2a08a9eb863d2de237edeb89c99aa157c7bc4d..2d52f54ae5e36fe0170ae5c1a03e3b57539ac716 100644 (file)
@@ -1,6 +1,6 @@
 import { DuckDBInstance } from "@duckdb/node-api";
 
-const instance = await DuckDBInstance.create("./src/fontspector.db");
+const instance = await DuckDBInstance.create("../../fontspector.db");
 const db = await instance.connect();
 
 const reader = await db.runAndReadAll(
index 0614d5a1a1b6b2707388c7b6191760f3f8988ef0..6cabf74efc22d6c37f098b263c54d413413457d3 100644 (file)
@@ -13,7 +13,7 @@ jobs:
           ref: main
           lfs: true
       - name: Grab fontspector database
-        run: git fetch origin gh-pages; git checkout gh-pages; cp fontspector-dashboard/fontspector.db .ci/fontspector-dashboard/src/fontspector.db || true; git checkout main
+        run: git fetch origin gh-pages; git checkout gh-pages; cp fontspector-dashboard/fontspector.db . ; git checkout main
       - name: Install protoc
         run: brew install protobuf
       - name: Install Rust
@@ -21,9 +21,11 @@ jobs:
       - name: Build fontspector
         run: cargo install --git https://github.com/fonttools/fontspector --features duckdb
       - name: Test all the things
-        run: fontspector --profile googlefonts ofl/*/*{.ttf,.pb,*html,*svg,*jpg,*gif} --skip-network --succinct --duckdb .ci/fontspector-dashboard/src/fontspector.db || true
+        run: fontspector --profile googlefonts ofl/*/*{.ttf,.pb,*html,*svg,*jpg,*gif} --skip-network --succinct --duckdb fontspector.db || true
       - name: Build dashboard
-        run: cd .ci/fontspector-dashboard && npm install && npm run build && cp src/fontspector.db ../../fontspector-dashboard-build/
+        run: cd .ci/fontspector-dashboard && npm install && npm run build
+      - name: Stash database again
+        run: cp fontspector.db fontspector-dashboard-build/
       - name: Add to branch
         run: git checkout gh-pages; git rm -rf fontspector-dashboard || true; rm -rf fontspector-dashboard || true; mv fontspector-dashboard-build fontspector-dashboard
       - name: Upload results