diff --git a/CHANGELOG.md b/CHANGELOG.md index 965825f3..a12558b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ ### New Features +* `pos-cli deploy --dry-run` is now enabled for all users. Validates the release on the server and reports which files would be upserted or deleted without applying any changes. * `pos-cli check run -c, --check ` — filter linter output to a specific check by name (repeatable flag; validates names and lists available checks on mismatch) ### Improvements diff --git a/bin/pos-cli-deploy.js b/bin/pos-cli-deploy.js index f4cb4db6..41eccbf5 100755 --- a/bin/pos-cli-deploy.js +++ b/bin/pos-cli-deploy.js @@ -17,11 +17,6 @@ program .action(async (environment, params) => { if (params.force) logger.Warn('-f flag is deprecated and does not do anything.'); - if (params.dryRun && !process.env.DEV) { - await logger.Warn('--dry-run is temporarily disabled. This feature will be enabled soon.'); - process.exit(0); - } - let strategy; if (params.dryRun) { strategy = 'dryRun'; diff --git a/test/integration/deploy.test.js b/test/integration/deploy.test.js index 7de48b5f..fcc03c20 100644 --- a/test/integration/deploy.test.js +++ b/test/integration/deploy.test.js @@ -108,8 +108,7 @@ describe('Happy path', () => { }); }); -describe.skip('Dry run', () => { - // Temporarily disabled: --dry-run is disabled until the feature is propagated to all servers. +describe('Dry run', () => { test('reports would-be changes without applying them', { retry: 2 }, async () => { const { stdout } = await run('correct', '--dry-run');