openvibers/openvibe.examples Commits
CI: the structure test accepts the shared test workflow (Node 22 by default) and the workflow names npm test
Changes
@@@ -9,6 +9,7 @@ jobs:uses: OpenVibers/OpenVibe.Shared/.github/workflows/test.yml@66b76f868ea8228aad7811309eafef3726b036f3with:install: npm ci # one install for every example (npm workspaces)++ test: npm test # every example's testssyntax-dirs: scriptsextra: npm run developer-path:mock # the developer path end to end against mocks# Secret scan (gitleaks) and dependency audit, shared by every OpenVibers repo.@@@ -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');
@@ -9,6 +9,7 @@ jobs:
@@ -9,6 +9,7 @@ jobs:
uses: OpenVibers/OpenVibe.Shared/.github/workflows/test.yml@66b76f868ea8228aad7811309eafef3726b036f3
uses: OpenVibers/OpenVibe.Shared/.github/workflows/test.yml@66b76f868ea8228aad7811309eafef3726b036f3
with:
with:
install: npm ci # one install for every example (npm workspaces)
install: npm ci # one install for every example (npm workspaces)
+ test: npm test # every example's tests
syntax-dirs: scripts
syntax-dirs: scripts
extra: npm run developer-path:mock # the developer path end to end against mocks
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.
# Secret scan (gitleaks) and dependency audit, shared by every OpenVibers repo.
@@ -56,7 +56,8 @@ for (const name of EXPECTED) {
@@ -56,7 +56,8 @@ for (const name of EXPECTED) {
// The root runner and CI.
// The root runner and CI.
const ci = fs.readFileSync(path.join(ROOT, '.github', 'workflows', 'ci.yml'), 'utf8');
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/);
assert.match(ci, /npm test/);
const rootPkg = JSON.parse(fs.readFileSync(path.join(ROOT, 'package.json'), 'utf8'));
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');
assert.equal(rootPkg.devDependencies['openvibe-sdk'], SDK, 'the root scripts use the same SDK tag');