Skip to content

Commit f80516d

Browse files
committed
feat: add github actions cleanup
1 parent 51f6e75 commit f80516d

1 file changed

Lines changed: 1 addition & 31 deletions

File tree

scripts/cleanup-github-actions.ts

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -8,34 +8,4 @@ await PluginTester.uninstall(pluginPath, [
88
{ type: 'docker' },
99
]);
1010

11-
await testSpawn('apt-get autoremove -y golang ruby rpm python3 php zig', { requiresRoot: true })
12-
13-
// Remove pre-installed tools that don't have Codify resources
14-
// Python — remove all python-related binaries and symlinks
15-
await testSpawn('bash -c \'rm -f /usr/bin/python* /usr/local/bin/python*\'', { requiresRoot: true });
16-
17-
18-
// Go
19-
await testSpawn('bash -c \'rm -f /usr/bin/go* /usr/local/bin/go* && rm -rf /usr/local/go\'', { requiresRoot: true });
20-
21-
// Ruby — remove binaries and gems
22-
await testSpawn('bash -c \'rm -f /usr/bin/ruby* /usr/local/bin/ruby* /usr/bin/gem* /usr/local/bin/gem*\'', { requiresRoot: true });
23-
24-
// Zig
25-
await testSpawn('bash -c \'rm -f /usr/bin/zig* /usr/local/bin/zig*\'', { requiresRoot: true });
26-
27-
// Google Cloud SDK
28-
await testSpawn('rm -rf /opt/google/google-cloud-sdk', { requiresRoot: true });
29-
30-
// Apache Maven
31-
await testSpawn('rm -rf /usr/local/apache-maven', { requiresRoot: true });
32-
33-
// Gradle
34-
await testSpawn('rm -rf /usr/local/gradle-*', { requiresRoot: true });
35-
36-
// Yarn (installed via ~/.yarn and ~/.config/yarn)
37-
await testSpawn('rm -rf ~/.yarn ~/.config/yarn');
38-
39-
// Docker — remove user-level config and data directories
40-
await testSpawn('rm -rf ~/.docker');
41-
11+
await testSpawn('apt-get autoremove -y golang ruby rpm python3 php', { requiresRoot: true })

0 commit comments

Comments
 (0)