Skip to content

Commit

Permalink
Remove apt-get cache clear scripts from GraphvizInstaller (#610)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamiazya authored Apr 24, 2024
1 parent bf59add commit f09cdb5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 68 deletions.
8 changes: 0 additions & 8 deletions src/GraphvizInstaller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,6 @@ export class GraphvizInstaller {
const graphvizVersion = getInput("ubuntu-graphviz-version");
const libgraphvizdevVersion = getInput("ubuntu-libgraphvizdev-version");
if (skipAptUpdate === false) {
await exec("sudo", ["apt-get", "clean"]);
// https://github.com/actions/runner-images/issues/9733#issuecomment-2074565599
await exec("sudo", [
"sudo",
"rm",
"/etc/apt/sources.list.d/microsoft-prod.list",
]);

await exec("sudo", ["apt-get", "update"]);
}
await exec("sudo", [
Expand Down
60 changes: 0 additions & 60 deletions src/__tests__/GraphvizInstaller.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,21 +162,6 @@ describe("class GraphvizInstaller", () => {

expect(execSpy.mock.calls).toMatchInlineSnapshot(`
[
[
"sudo",
[
"apt-get",
"clean",
],
],
[
"sudo",
[
"sudo",
"rm",
"/etc/apt/sources.list.d/microsoft-prod.list",
],
],
[
"sudo",
[
Expand Down Expand Up @@ -217,21 +202,6 @@ describe("class GraphvizInstaller", () => {

expect(execSpy.mock.calls).toMatchInlineSnapshot(`
[
[
"sudo",
[
"apt-get",
"clean",
],
],
[
"sudo",
[
"sudo",
"rm",
"/etc/apt/sources.list.d/microsoft-prod.list",
],
],
[
"sudo",
[
Expand Down Expand Up @@ -270,21 +240,6 @@ describe("class GraphvizInstaller", () => {

expect(execSpy.mock.calls).toMatchInlineSnapshot(`
[
[
"sudo",
[
"apt-get",
"clean",
],
],
[
"sudo",
[
"sudo",
"rm",
"/etc/apt/sources.list.d/microsoft-prod.list",
],
],
[
"sudo",
[
Expand Down Expand Up @@ -323,21 +278,6 @@ describe("class GraphvizInstaller", () => {

expect(execSpy.mock.calls).toMatchInlineSnapshot(`
[
[
"sudo",
[
"apt-get",
"clean",
],
],
[
"sudo",
[
"sudo",
"rm",
"/etc/apt/sources.list.d/microsoft-prod.list",
],
],
[
"sudo",
[
Expand Down

0 comments on commit f09cdb5

Please sign in to comment.