diff --git a/CHANGELOG.md b/CHANGELOG.md index f0c8cb8..e753ae1 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 086. + ### Changed - Example inventory guard cycle 082. diff --git a/package.json b/package.json index b205ae5..b50be47 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 && npm run check:cycle-078 && npm run check:cycle-082", + "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 && npm run check:cycle-082 && npm run check:cycle-086", "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", @@ -30,7 +30,8 @@ "check:cycle-070": "node scripts/check-cycle-070.js", "check:cycle-074": "node scripts/check-cycle-074.js", "check:cycle-078": "node scripts/check-cycle-078.js", - "check:cycle-082": "node scripts/check-cycle-082.js" + "check:cycle-082": "node scripts/check-cycle-082.js", + "check:cycle-086": "node scripts/check-cycle-086.js" }, "devDependencies": { "ajv": "^8.20.0", diff --git a/scripts/check-cycle-086.js b/scripts/check-cycle-086.js new file mode 100644 index 0000000..86bcb79 --- /dev/null +++ b/scripts/check-cycle-086.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 86 marker ensures unique script +console.log('examples ok', files.length, 'cycle 86');