openvibers/openvibe.examples Commits

CI: the structure test accepts the shared test workflow (Node 22 by default) and the workflow names npm test

OP OpenVibers committed 25 Sept 2026 · 51d7c73bde · 2 files, +3 −1


Changes

ddiff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
iindex 6989d44..158cdab 100644
---- a/.github/workflows/ci.yml
++++ b/.github/workflows/ci.yml
@@@ -9,6 +9,7 @@ jobs:
uses: OpenVibers/OpenVibe.Shared/.github/workflows/test.yml@66b76f868ea8228aad7811309eafef3726b036f3
with:
install: npm ci # one install for every example (npm workspaces)
++ test: npm test # every example's tests
syntax-dirs: scripts
extra: npm run developer-path:mock # the developer path end to end against mocks
# Secret scan (gitleaks) and dependency audit, shared by every OpenVibers repo.
ddiff --git a/test/structure.test.js b/test/structure.test.js
iindex 3de612b..5b004c4 100644
---- a/test/structure.test.js
++++ b/test/structure.test.js
@@@ -56,7 +56,8 @@ for (const name of EXPECTED) {
// The root runner and CI.
const ci = fs.readFileSync(path.join(ROOT, '.github', 'workflows', 'ci.yml'), 'utf8');
--assert.match(ci, /node-version: 22\.22\.1/);
++// CI runs on Node 22: the shared test workflow (its default, 22.22.1) or an explicit pin.
++assert.match(ci, /OpenVibe\.Shared\/\.github\/workflows\/test\.yml@[0-9a-f]{40}|node-version: 22\.22\.1/);
assert.match(ci, /npm test/);
const rootPkg = JSON.parse(fs.readFileSync(path.join(ROOT, 'package.json'), 'utf8'));
assert.equal(rootPkg.devDependencies['openvibe-sdk'], SDK, 'the root scripts use the same SDK tag');