Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <name>` — filter linter output to a specific check by name (repeatable flag; validates names and lists available checks on mismatch)

### Improvements
Expand Down
5 changes: 0 additions & 5 deletions bin/pos-cli-deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
3 changes: 1 addition & 2 deletions test/integration/deploy.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down
Loading