diff --git a/deno.lock b/deno.lock index d1bad41..0c5026c 100644 --- a/deno.lock +++ b/deno.lock @@ -6,28 +6,15 @@ "jsr:@cliffy/internal@1.0.0-rc.7": "1.0.0-rc.7", "jsr:@cliffy/table@1.0.0-rc.7": "1.0.0-rc.7", "jsr:@rebeccastevens/deepmerge@*": "7.1.3", - "jsr:@rebeccastevens/deepmerge@^7.1.3": "7.1.3", - "jsr:@std/assert@^1.0.6": "1.0.6", - "jsr:@std/bytes@^1.0.2": "1.0.2", - "jsr:@std/data-structures@^1.0.4": "1.0.4", + "jsr:@std/bytes@^1.0.3": "1.0.3", "jsr:@std/dotenv@*": "0.225.2", - "jsr:@std/dotenv@~0.225.2": "0.225.2", "jsr:@std/fmt@*": "1.0.3", - "jsr:@std/fmt@^1.0.3": "1.0.3", "jsr:@std/fmt@~1.0.2": "1.0.3", - "jsr:@std/fs@^1.0.4": "1.0.5", - "jsr:@std/internal@^1.0.4": "1.0.4", - "jsr:@std/json@1": "1.0.1", "jsr:@std/jsonc@*": "1.0.1", - "jsr:@std/jsonc@^1.0.1": "1.0.1", - "jsr:@std/path@*": "1.0.7", - "jsr:@std/path@^1.0.6": "1.0.7", - "jsr:@std/path@^1.0.7": "1.0.7", - "jsr:@std/streams@*": "1.0.7", - "jsr:@std/streams@^1.0.7": "1.0.7", - "jsr:@std/testing@^1.0.3": "1.0.3", + "jsr:@std/path@*": "1.0.8", + "jsr:@std/streams@*": "1.0.8", "jsr:@std/text@~1.0.7": "1.0.8", - "npm:zod-to-json-schema@*": "3.23.3_zod@3.23.8" + "npm:zod-to-json-schema@*": "3.23.5_zod@3.23.8" }, "jsr": { "@cliffy/command@1.0.0-rc.7": { @@ -58,17 +45,8 @@ "@rebeccastevens/deepmerge@7.1.3": { "integrity": "d9fb8c19fdfba403ffad8cca6a59ec2b399541e33694f2d9d9570179b0b5c155" }, - "@std/assert@1.0.6": { - "integrity": "1904c05806a25d94fe791d6d883b685c9e2dcd60e4f9fc30f4fc5cf010c72207", - "dependencies": [ - "jsr:@std/internal" - ] - }, - "@std/bytes@1.0.2": { - "integrity": "fbdee322bbd8c599a6af186a1603b3355e59a5fb1baa139f8f4c3c9a1b3e3d57" - }, - "@std/data-structures@1.0.4": { - "integrity": "fa0e20c11eb9ba673417450915c750a0001405a784e2a4e0c3725031681684a0" + "@std/bytes@1.0.3": { + "integrity": "e5d5b9e685966314e4edb4be60dfc4bd7624a075bfd4ec8109252b4320f76452" }, "@std/dotenv@0.225.2": { "integrity": "e2025dce4de6c7bca21dece8baddd4262b09d5187217e231b033e088e0c4dd23" @@ -76,50 +54,25 @@ "@std/fmt@1.0.3": { "integrity": "97765c16aa32245ff4e2204ecf7d8562496a3cb8592340a80e7e554e0bb9149f" }, - "@std/fs@1.0.5": { - "integrity": "41806ad6823d0b5f275f9849a2640d87e4ef67c51ee1b8fb02426f55e02fd44e", - "dependencies": [ - "jsr:@std/path@^1.0.7" - ] - }, - "@std/internal@1.0.4": { - "integrity": "62e8e4911527e5e4f307741a795c0b0a9e6958d0b3790716ae71ce085f755422" - }, - "@std/json@1.0.1": { - "integrity": "1f0f70737e8827f9acca086282e903677bc1bb0c8ffcd1f21bca60039563049f" - }, "@std/jsonc@1.0.1": { - "integrity": "6b36956e2a7cbb08ca5ad7fbec72e661e6217c202f348496ea88747636710dda", - "dependencies": [ - "jsr:@std/json" - ] + "integrity": "6b36956e2a7cbb08ca5ad7fbec72e661e6217c202f348496ea88747636710dda" }, - "@std/path@1.0.7": { - "integrity": "76a689e07f0e15dcc6002ec39d0866797e7156629212b28f27179b8a5c3b33a1" + "@std/path@1.0.8": { + "integrity": "548fa456bb6a04d3c1a1e7477986b6cffbce95102d0bb447c67c4ee70e0364be" }, - "@std/streams@1.0.7": { - "integrity": "1a93917ca0c58c01b2bfb93647189229b1702677f169b6fb61ad6241cd2e499b", + "@std/streams@1.0.8": { + "integrity": "b41332d93d2cf6a82fe4ac2153b930adf1a859392931e2a19d9fabfb6f154fb3", "dependencies": [ "jsr:@std/bytes" ] }, - "@std/testing@1.0.3": { - "integrity": "f98c2bee53860a5916727d7e7d3abe920dd6f9edace022e2d059f00d05c2cf42", - "dependencies": [ - "jsr:@std/assert", - "jsr:@std/data-structures", - "jsr:@std/fs", - "jsr:@std/internal", - "jsr:@std/path@^1.0.6" - ] - }, "@std/text@1.0.8": { "integrity": "40ba34caa095f393e78796e5eda37b8b4e2cc6cfd6f51f34658ad7487b1451e4" } }, "npm": { - "zod-to-json-schema@3.23.3_zod@3.23.8": { - "integrity": "sha512-TYWChTxKQbRJp5ST22o/Irt9KC5nj7CdBKYB/AosCRdj/wxEMvv4NNaj9XVUHDOIp53ZxArGhnw5HMZziPFjog==", + "zod-to-json-schema@3.23.5_zod@3.23.8": { + "integrity": "sha512-5wlSS0bXfF/BrL4jPAbz9da5hDlDptdEppYfe+x4eIJ7jioqKG9uUxOwPzqof09u/XeVdrgFu29lZi+8XNDJtA==", "dependencies": [ "zod" ] @@ -145,84 +98,6 @@ "https://deno.land/std@0.150.0/path/posix.ts": "c1f7afe274290ea0b51da07ee205653b2964bd74909a82deb07b69a6cc383aaa", "https://deno.land/std@0.150.0/path/separator.ts": "fe1816cb765a8068afb3e8f13ad272351c85cbc739af56dacfc7d93d710fe0f9", "https://deno.land/std@0.150.0/path/win32.ts": "bd7549042e37879c68ff2f8576a25950abbfca1d696d41d82c7bca0b7e6f452c", - "https://deno.land/std@0.196.0/assert/assert.ts": "9a97dad6d98c238938e7540736b826440ad8c1c1e54430ca4c4e623e585607ee", - "https://deno.land/std@0.196.0/assert/assertion_error.ts": "4d0bde9b374dfbcbe8ac23f54f567b77024fb67dbb1906a852d67fe050d42f56", - "https://deno.land/std@0.196.0/console/_data.json": "cf2cc9d039a192b3adbfe64627167c7e6212704c888c25c769fc8f1709e1e1b8", - "https://deno.land/std@0.196.0/console/_rle.ts": "56668d5c44f964f1b4ff93f21c9896df42d6ee4394e814db52d6d13f5bb247c7", - "https://deno.land/std@0.196.0/console/unicode_width.ts": "10661c0f2eeab802d16b8b85ed8825bbc573991bbfb6affed32dc1ff994f54f9", - "https://deno.land/std@0.196.0/fmt/colors.ts": "a7eecffdf3d1d54db890723b303847b6e0a1ab4b528ba6958b8f2e754cf1b3bc", - "https://deno.land/x/cliffy@v1.0.0-rc.3/_utils/distance.ts": "02af166952c7c358ac83beae397aa2fbca4ad630aecfcd38d92edb1ea429f004", - "https://deno.land/x/cliffy@v1.0.0-rc.3/command/_argument_types.ts": "ab269dacea2030f865a07c2a1e953ec437a64419a05bad1f1ddaab3f99752ead", - "https://deno.land/x/cliffy@v1.0.0-rc.3/command/_errors.ts": "12d513ff401020287a344e0830e1297ce1c80c077ecb91e0ac5db44d04a6019c", - "https://deno.land/x/cliffy@v1.0.0-rc.3/command/_spread.ts": "0cc6eb70a6df97b5d7d26008822d39f3e8a1232ee0a27f395aa19e68de738245", - "https://deno.land/x/cliffy@v1.0.0-rc.3/command/_type_utils.ts": "820004a59bc858e355b11f80e5b3ff1be2c87e66f31f53f253610170795602f0", - "https://deno.land/x/cliffy@v1.0.0-rc.3/command/_utils.ts": "3c88ff4f36eba298beb07de08068fdce5e5cb7b9d82c8a319f09596d8279be64", - "https://deno.land/x/cliffy@v1.0.0-rc.3/command/command.ts": "ae690745759524082776b7f271f66d5b93933170b1b132f888bd4ac12e9fdd7d", - "https://deno.land/x/cliffy@v1.0.0-rc.3/command/completions/_bash_completions_generator.ts": "0c6cb1df4d378d22f001155781d97a9c3519fd10c48187a198fef2cc63b0f84a", - "https://deno.land/x/cliffy@v1.0.0-rc.3/command/completions/_fish_completions_generator.ts": "8ba4455f7f76a756e05c3db4ce35332b2951af65a2891f2750b530e06880f495", - "https://deno.land/x/cliffy@v1.0.0-rc.3/command/completions/_zsh_completions_generator.ts": "c74525feaf570fe8c14433c30d192622c25603f1fc64694ef69f2a218b41f230", - "https://deno.land/x/cliffy@v1.0.0-rc.3/command/completions/bash.ts": "53fe78994eb2359110dc4fa79235bdd86800a38c1d6b1c4fe673c81756f3a0e2", - "https://deno.land/x/cliffy@v1.0.0-rc.3/command/completions/complete.ts": "58df61caa5e6220ff2768636a69337923ad9d4b8c1932aeb27165081c4d07d8b", - "https://deno.land/x/cliffy@v1.0.0-rc.3/command/completions/completions_command.ts": "506f97f1c6b0b1c3e9956e5069070028b818942310600d4157f64c9b644d3c49", - "https://deno.land/x/cliffy@v1.0.0-rc.3/command/completions/fish.ts": "6f0b44b4067740b2931c9ec8863b6619b1d3410fea0c5a3988525a4c53059197", - "https://deno.land/x/cliffy@v1.0.0-rc.3/command/completions/mod.ts": "8dda715ca25f3f66d5ec232b76d7c9a96dd4c64b5029feff91738cc0c9586fb1", - "https://deno.land/x/cliffy@v1.0.0-rc.3/command/completions/zsh.ts": "f1263c3946975e090d4aadc8681db811d86b52a8ae680f246e03248025885c21", - "https://deno.land/x/cliffy@v1.0.0-rc.3/command/deprecated.ts": "bbe6670f1d645b773d04b725b8b8e7814c862c9f1afba460c4d599ffe9d4983c", - "https://deno.land/x/cliffy@v1.0.0-rc.3/command/deps.ts": "7473ebd5625bf901becd7ff80afdde3b8a50ae5d1bbfa2f43805cfacf4559d5a", - "https://deno.land/x/cliffy@v1.0.0-rc.3/command/help/_help_generator.ts": "532dd4a928baab8b45ce46bb6d20e2ebacfdf3da141ce9d12da796652b1de478", - "https://deno.land/x/cliffy@v1.0.0-rc.3/command/help/help_command.ts": "fbbf0c0827dd21d3cec7bcc68c00c20b55f53e2b621032891b9d23ac4191231c", - "https://deno.land/x/cliffy@v1.0.0-rc.3/command/help/mod.ts": "8369b292761dcc9ddaf41f2d34bfb06fb6800b69efe80da4fc9752c3b890275b", - "https://deno.land/x/cliffy@v1.0.0-rc.3/command/mod.ts": "4b708df1b97152522bee0e3828f06abbbc1d2250168910e5cf454950d7b7404b", - "https://deno.land/x/cliffy@v1.0.0-rc.3/command/type.ts": "f588f5d9635b79100044e62aced4b00e510e75b83801f9b089c40c2d98674de2", - "https://deno.land/x/cliffy@v1.0.0-rc.3/command/types.ts": "bc9ff7459b9cc1079eeb95ff101690a51b4b4afa4af5623340076ee361d08dbb", - "https://deno.land/x/cliffy@v1.0.0-rc.3/command/types/action_list.ts": "33c98d449617c7a563a535c9ceb3741bde9f6363353fd492f90a74570c611c27", - "https://deno.land/x/cliffy@v1.0.0-rc.3/command/types/boolean.ts": "3879ec16092b4b5b1a0acb8675f8c9250c0b8a972e1e4c7adfba8335bd2263ed", - "https://deno.land/x/cliffy@v1.0.0-rc.3/command/types/child_command.ts": "f1fca390c7fbfa7a713ca15ef55c2c7656bcbb394d50e8ef54085bdf6dc22559", - "https://deno.land/x/cliffy@v1.0.0-rc.3/command/types/command.ts": "325d0382e383b725fd8d0ef34ebaeae082c5b76a1f6f2e843fee5dbb1a4fe3ac", - "https://deno.land/x/cliffy@v1.0.0-rc.3/command/types/enum.ts": "8a7cd2898e03089234083bb78c8b1d9b7172254c53c32d4710321638165a48ec", - "https://deno.land/x/cliffy@v1.0.0-rc.3/command/types/file.ts": "8618f16ac9015c8589cbd946b3de1988cc4899b90ea251f3325c93c46745140e", - "https://deno.land/x/cliffy@v1.0.0-rc.3/command/types/integer.ts": "29864725fd48738579d18123d7ee78fed37515e6dc62146c7544c98a82f1778d", - "https://deno.land/x/cliffy@v1.0.0-rc.3/command/types/number.ts": "aeba96e6f470309317a16b308c82e0e4138a830ec79c9877e4622c682012bc1f", - "https://deno.land/x/cliffy@v1.0.0-rc.3/command/types/string.ts": "e4dadb08a11795474871c7967beab954593813bb53d9f69ea5f9b734e43dc0e0", - "https://deno.land/x/cliffy@v1.0.0-rc.3/command/upgrade/_check_version.ts": "6cfa7dc26bc0dc46381500e8d4b130fb224f4c5456152dada15bd3793edca89b", - "https://deno.land/x/cliffy@v1.0.0-rc.3/command/upgrade/mod.ts": "4eff69c489467be17dea27fb95a795396111ee385d170ac0cbcc82f0ea38156c", - "https://deno.land/x/cliffy@v1.0.0-rc.3/command/upgrade/provider.ts": "c23253334097dc4b8a147ccdeb3aa44f5a95aa953a6386cb5396f830d95d77a5", - "https://deno.land/x/cliffy@v1.0.0-rc.3/command/upgrade/provider/deno_land.ts": "24f8d82e38c51e09be989f30f8ad21f9dd41ac1bb1973b443a13883e8ba06d6d", - "https://deno.land/x/cliffy@v1.0.0-rc.3/command/upgrade/provider/github.ts": "99e1b133dd446c6aa79f69e69c46eb8bc1c968dd331c2a7d4064514a317c7b59", - "https://deno.land/x/cliffy@v1.0.0-rc.3/command/upgrade/provider/nest_land.ts": "0e07936cea04fa41ac9297f32d87f39152ea873970c54cb5b4934b12fee1885e", - "https://deno.land/x/cliffy@v1.0.0-rc.3/command/upgrade/upgrade_command.ts": "3640a287d914190241ea1e636774b1b4b0e1828fa75119971dd5304784061e05", - "https://deno.land/x/cliffy@v1.0.0-rc.3/flags/_errors.ts": "f1fbb6bfa009e7950508c9d491cfb4a5551027d9f453389606adb3f2327d048f", - "https://deno.land/x/cliffy@v1.0.0-rc.3/flags/_utils.ts": "340d3ecab43cde9489187e1f176504d2c58485df6652d1cdd907c0e9c3ce4cc2", - "https://deno.land/x/cliffy@v1.0.0-rc.3/flags/_validate_flags.ts": "e60b9038c0136ab7e6bd1baf0e993a07bf23f18afbfb6e12c59adf665a622957", - "https://deno.land/x/cliffy@v1.0.0-rc.3/flags/deprecated.ts": "a72a35de3cc7314e5ebea605ca23d08385b218ef171c32a3f135fb4318b08126", - "https://deno.land/x/cliffy@v1.0.0-rc.3/flags/flags.ts": "3e62c4a9756b5705aada29e7e94847001356b3a83cd18ad56f4207387a71cf51", - "https://deno.land/x/cliffy@v1.0.0-rc.3/flags/types.ts": "9e2f75edff2217d972fc711a21676a59dfd88378da2f1ace440ea84c07db1dcc", - "https://deno.land/x/cliffy@v1.0.0-rc.3/flags/types/boolean.ts": "4c026dd66ec9c5436860dc6d0241427bdb8d8e07337ad71b33c08193428a2236", - "https://deno.land/x/cliffy@v1.0.0-rc.3/flags/types/integer.ts": "b60d4d590f309ddddf066782d43e4dc3799f0e7d08e5ede7dc62a5ee94b9a6d9", - "https://deno.land/x/cliffy@v1.0.0-rc.3/flags/types/number.ts": "610936e2d29de7c8c304b65489a75ebae17b005c6122c24e791fbed12444d51e", - "https://deno.land/x/cliffy@v1.0.0-rc.3/flags/types/string.ts": "e89b6a5ce322f65a894edecdc48b44956ec246a1d881f03e97bbda90dd8638c5", - "https://deno.land/x/cliffy@v1.0.0-rc.3/table/_layout.ts": "e4a518da28333de95ad791208b9930025987c8b93d5f8b7f30b377b3e26b24e1", - "https://deno.land/x/cliffy@v1.0.0-rc.3/table/_utils.ts": "fd48d1a524a42e72aa3ad2eec858a92f5a00728d306c7e8436fba6c34314fee6", - "https://deno.land/x/cliffy@v1.0.0-rc.3/table/border.ts": "5c6e9ef5078c6930169aacb668b274bdbb498461c724a7693ac9270fe9d3f5d5", - "https://deno.land/x/cliffy@v1.0.0-rc.3/table/cell.ts": "1ffabd43b6b7fddfac9625cb0d015532e144702a9bfed03b358b79375115d06b", - "https://deno.land/x/cliffy@v1.0.0-rc.3/table/column.ts": "cf14009f2cb14bad156f879946186c1893acdc6a2fee6845db152edddb6a2714", - "https://deno.land/x/cliffy@v1.0.0-rc.3/table/consume_words.ts": "456e75755fdf6966abdefb8b783df2855e2a8bad6ddbdf21bd748547c5fc1d4b", - "https://deno.land/x/cliffy@v1.0.0-rc.3/table/deps.ts": "1226c4d39d53edc81d7c3e661fb8a79f2e704937c276c60355cd4947a0fe9153", - "https://deno.land/x/cliffy@v1.0.0-rc.3/table/row.ts": "79eb1468aafdd951e5963898cdafe0752d4ab4c519d5f847f3d8ecb8fe857d4f", - "https://deno.land/x/cliffy@v1.0.0-rc.3/table/table.ts": "298671e72e61f1ab18b42ae36643181993f79e29b39dc411fdc6ffd53aa04684", - "https://deno.land/x/deepmergets@v5.1.0/dist/deno/actions.ts": "fb4c0cb491c1dda0fedce332ed8dc6e3a15d7ad3cdc27a41b691b5ce28d7b77e", - "https://deno.land/x/deepmergets@v5.1.0/dist/deno/deepmerge-into.ts": "10f1c8699ab753ddfec2c38b95e8d9963b1c55654481d317882e27b707fa950d", - "https://deno.land/x/deepmergets@v5.1.0/dist/deno/deepmerge.ts": "b63c61a97b619dafed8e8c4824d3dca30ca0d818be74d0a12d3e5aa222f3ae47", - "https://deno.land/x/deepmergets@v5.1.0/dist/deno/defaults/into.ts": "83de669e15de0d67ed9f47fc2a9cb6610901a5f05f42ca38c4df86474c467377", - "https://deno.land/x/deepmergets@v5.1.0/dist/deno/defaults/meta-data-updater.ts": "e8d934d3fafa12fdb305b7697adfeb5e53fff1498b7c51d198a8b1ba7a32a409", - "https://deno.land/x/deepmergets@v5.1.0/dist/deno/defaults/vanilla.ts": "2026cb840a28165115ea6f3e3ba41da5b49ff55c7828f30d307df38f34bc6179", - "https://deno.land/x/deepmergets@v5.1.0/dist/deno/index.ts": "80fcef8e260e3f8ce6e373a3a7fb8d58b7e0924331a58fa4b606a2f1144dd7e8", - "https://deno.land/x/deepmergets@v5.1.0/dist/deno/types/defaults.ts": "87a3b472edf86488f3692f1b7a26e28bd016bcb3fc0c202e9c5a2a83f2bc7ba6", - "https://deno.land/x/deepmergets@v5.1.0/dist/deno/types/index.ts": "276d75bf9fb8d338bd84ed0357ea12a52a6b4da06c0a499c0e8ccbd4b57cf093", - "https://deno.land/x/deepmergets@v5.1.0/dist/deno/types/merging.ts": "30d42a56a7822d1e176badc2da683fd0e711666a19a2487e63c55efb9315e146", - "https://deno.land/x/deepmergets@v5.1.0/dist/deno/types/options.ts": "bf84858b402f2d9199245d39c5af523d779854327e6859193904321b0ab031be", - "https://deno.land/x/deepmergets@v5.1.0/dist/deno/types/utils.ts": "57638173519b8485e740cb1fc6e26797742c7ba7a418fc8c3cf409c9ba08f45a", - "https://deno.land/x/deepmergets@v5.1.0/dist/deno/utils.ts": "9fc7b7d5652ed447c25b338f23af4a18bb36c5ad5b45c76e43e1eca2c01481dd", "https://deno.land/x/globber@0.1.0/mod.ts": "971e58757909b2ef722e3dda1125aea8f5694601203ad835bdfc020f202bd5b8", "https://deno.land/x/globber@0.1.0/src/create_matcher.ts": "85be3a6d67376905521aed9da51db756d1ee747ebd0d52b88fc7b78a6831a393", "https://deno.land/x/globber@0.1.0/src/deps.ts": "179ba170213f7a35b7b794c409e7ca523da58644139c053721f93575dcbe616e", diff --git a/schema.json b/schema.json index 91e1472..a9e582f 100644 --- a/schema.json +++ b/schema.json @@ -73,6 +73,11 @@ "items": { "type": "object", "properties": { + "id": { + "type": "string", + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9\\-]*$", + "description": "Workflow id" + }, "name": { "type": "string", "description": "Workflow name" diff --git a/src/commands/workflow/exec.ts b/src/commands/workflow/exec.ts index 2e22332..5abb4cf 100644 --- a/src/commands/workflow/exec.ts +++ b/src/commands/workflow/exec.ts @@ -58,7 +58,11 @@ export const exec = new Command() const { dryRun, mode } = options const cfg = config.get(options as CliOptions) as any - const run = cfg.workflows.find((w: any) => w.name === workflow) + if (!cfg.workflows) { + throw new ValidationError('No workflows defined in config') + } + + const run = cfg.workflows.find((w) => w.id === workflow || w.name === workflow) if (!run) { throw new ValidationError(`Workflow ${workflow} not found`) } diff --git a/src/lib/schema.ts b/src/lib/schema.ts index bf18c4f..71f01a9 100644 --- a/src/lib/schema.ts +++ b/src/lib/schema.ts @@ -46,6 +46,7 @@ export const ConfigSchema = z.object({ }), workflows: z.array( z.object({ + id: z.string().regex(new RegExp('^[a-zA-Z0-9][a-zA-Z0-9\\-]*$')).optional().describe('Workflow id'), name: z.string().describe('Workflow name'), steps: z.array( z.object({ diff --git a/tests/fixtures/test.config.json b/tests/fixtures/test.config.json index 51284d8..e60ef82 100644 --- a/tests/fixtures/test.config.json +++ b/tests/fixtures/test.config.json @@ -11,6 +11,7 @@ }, "workflows": [ { + "id": "compile-client", "name": "compile client", "steps": [ { @@ -27,6 +28,7 @@ ] }, { + "id": "compile-server", "name": "compile server", "steps": [ { @@ -43,6 +45,7 @@ ] }, { + "id": "cook-all", "name": "cook all", "steps": [ { @@ -59,6 +62,7 @@ ] }, { + "id": "package-client", "name": "package client", "steps": [ { @@ -79,6 +83,7 @@ ] }, { + "id": "package-server", "name": "package server", "steps": [ { diff --git a/tests/template.test.ts b/tests/template.test.ts index 93fb4bf..ac14ce8 100644 --- a/tests/template.test.ts +++ b/tests/template.test.ts @@ -88,6 +88,7 @@ Deno.test('renderConfig should deeply replace all placeholders in config object' metadata: { ts: '2024-02-29T12:34:56Z' }, workflows: [ { + id: 'compile', name: 'compile', steps: [ { @@ -109,6 +110,7 @@ Deno.test('renderConfig should deeply replace all placeholders in config object' metadata: { ts: '2024-02-29T12:34:56Z' }, workflows: [ { + id: 'compile', name: 'compile', steps: [ { @@ -135,6 +137,7 @@ Deno.test('replace paths in template', () => { metadata: { ts: '2024-02-29T12:34:56Z' }, workflows: [ { + id: 'compile', name: 'compile', steps: [ {