Skip to content

Commit ad521a8

Browse files
feat: add delete-old-build that was present in previous testing system (#71)
1 parent 38f9de4 commit ad521a8

2 files changed

Lines changed: 11 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ All notable changes to this project will be documented in this file.
44

55
## [0.6.1](https://github.com/apify/apify-test-tools/releases/tag/v0.6.1) (2026-03-26)
66

7-
87
## [0.6.0](https://github.com/apify/apify-test-tools/releases/tag/v0.6.0) (2026-03-26)
98

109
### 🚀 Features
@@ -20,8 +19,6 @@ All notable changes to this project will be documented in this file.
2019

2120
- Bump version to test beta release ([1322d31](https://github.com/apify/apify-test-tools/commit/1322d31873b6d43e16a68e97bdc358752f813f79)) by [@metalwarrior665](https://github.com/metalwarrior665)
2221

23-
24-
2522
# Changelog
2623

2724
## 0.5.5
@@ -96,4 +93,4 @@ feat: feat: add maxRetriesPerRequest test
9693
### Cli
9794

9895
- fix: parsing commits
99-
- feat: add `--workspace` cli option
96+
- feat: add `--workspace` cli option

bin/main.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import yargs, { type Argv } from 'yargs';
66
// eslint-disable-next-line import/extensions --- With .js, it cannot find types
77
import { hideBin } from 'yargs/helpers';
88

9-
import { runBuilds } from './build.js';
9+
import { deleteOldBuilds, runBuilds } from './build.js';
1010
import { getChangedActors } from './diff-changes.js';
1111
import { getChangedFiles, getCommits } from './git.js';
1212
import { getPushData } from './github.js';
@@ -153,7 +153,6 @@ await yargs()
153153
});
154154
console.error(JSON.stringify(builds));
155155

156-
// TODO: build circle actors
157156
await notifyToSlack({
158157
changedFiles,
159158
commits,
@@ -166,6 +165,15 @@ await yargs()
166165
});
167166
},
168167
)
168+
.command(
169+
'delete-old-builds',
170+
'',
171+
(_) => _,
172+
async () => {
173+
const actorConfigs = await getRepoActors();
174+
await deleteOldBuilds(actorConfigs);
175+
},
176+
)
169177
.strictCommands()
170178
.demandCommand(1, 'Command is required')
171179
.parse(hideBin(process.argv));

0 commit comments

Comments
 (0)