Skip to content

Commit 2fc45c4

Browse files
authored
Merge pull request #675 from angelapwen/update-available-images
Update available OSes to match available runner images
2 parents a6ceb06 + 4af1f36 commit 2fc45c4

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

.github/workflows/ci.yml

-4
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ jobs:
2929
os: [ubuntu-latest, macos-latest]
3030
swift: ["5.10"]
3131
include:
32-
- os: macos-12
33-
swift: "5.10"
34-
- os: ubuntu-22.04
35-
swift: "5.10"
3632
- os: windows-latest
3733
swift: "5.6.3"
3834
steps:

__tests__/os.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ const setSystem = require("getos").__setSystem;
66

77
describe("os resolver", () => {
88
it("finds matching system and version", async () => {
9-
setSystem({ os: "linux", dist: "Ubuntu", release: "18.04" });
9+
setSystem({ os: "linux", dist: "Ubuntu", release: "22.04" });
1010

1111
let ubuntu = await os.getSystem();
1212
expect(ubuntu.os).toBe(os.OS.Ubuntu);
13-
expect(ubuntu.version).toBe("18.04");
13+
expect(ubuntu.version).toBe("22.04");
1414
expect(ubuntu.name).toBe("Ubuntu");
1515

1616
setSystem({ os: "darwin", dist: "macOS", release: "latest" });

src/os.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ export namespace OS {
1313
}
1414

1515
const AVAILABLE_OS: { [platform: string]: string[] } = {
16-
macOS: ["latest", "12.0", "11.0", "10.15"],
17-
Ubuntu: ["latest", "22.04", "20.04", "18.04", "16.04"],
16+
macOS: ["latest", "14", "13", "12", "11"],
17+
Ubuntu: ["latest", "24.04", "22.04", "20.04"],
1818
Windows: ["latest", "10"],
1919
};
2020

0 commit comments

Comments
 (0)