diff --git a/CHANGELOG.md b/CHANGELOG.md index d4196c1..45d45c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed +- Example inventory guard cycle 078. + ### Changed - Example inventory guard cycle 074. diff --git a/package.json b/package.json index 1b7440c..fefb325 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "validate:schemas": "node scripts/validate-schemas.js", "conformance:core-dp": "node profiles/core-dp/conformance/run-conformance.js", "check:schemas-readme": "node scripts/check-schemas-readme.js", - "test": "npm run validate:schemas && npm run check:schemas-readme && npm run check:cycle-035 && npm run check:cycle-036 && npm run check:cycle-037 && npm run check:cycle-038 && npm run check:cycle-039 && npm run check:cycle-040 && npm run check:cycle-042 && npm run check:cycle-046 && npm run check:cycle-050 && npm run check:cycle-054 && npm run check:cycle-058 && npm run check:cycle-062 && npm run check:cycle-066 && npm run check:cycle-070 && npm run check:cycle-074", + "test": "npm run validate:schemas && npm run check:schemas-readme && npm run check:cycle-035 && npm run check:cycle-036 && npm run check:cycle-037 && npm run check:cycle-038 && npm run check:cycle-039 && npm run check:cycle-040 && npm run check:cycle-042 && npm run check:cycle-046 && npm run check:cycle-050 && npm run check:cycle-054 && npm run check:cycle-058 && npm run check:cycle-062 && npm run check:cycle-066 && npm run check:cycle-070 && npm run check:cycle-074 && npm run check:cycle-078", "check:cycle-035": "node scripts/check-cycle-035.js", "check:cycle-036": "node scripts/check-cycle-036.js", "check:cycle-037": "node scripts/check-cycle-037.js", @@ -28,7 +28,8 @@ "check:cycle-062": "node scripts/check-cycle-062.js", "check:cycle-066": "node scripts/check-cycle-066.js", "check:cycle-070": "node scripts/check-cycle-070.js", - "check:cycle-074": "node scripts/check-cycle-074.js" + "check:cycle-074": "node scripts/check-cycle-074.js", + "check:cycle-078": "node scripts/check-cycle-078.js" }, "devDependencies": { "ajv": "^8.20.0", diff --git a/scripts/check-cycle-078.js b/scripts/check-cycle-078.js new file mode 100644 index 0000000..1a116d0 --- /dev/null +++ b/scripts/check-cycle-078.js @@ -0,0 +1,10 @@ +const fs = require('fs'); +const path = require('path'); +const examplesDir = path.join(__dirname, '..', 'examples'); +const files = fs.readdirSync(examplesDir).filter((f) => f.endsWith('.json')); +if (files.length < 1) { + console.error('expected example json files'); + process.exit(1); +} +// cycle 78 marker ensures unique script +console.log('examples ok', files.length, 'cycle 78');