Skip to content
This repository was archived by the owner on Apr 10, 2024. It is now read-only.

Commit f3e493f

Browse files
authored
feat: run tests on different OS-es (#20)
1 parent dd43022 commit f3e493f

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

.github/workflows/pr.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@ on:
1414

1515
jobs:
1616
check_format_and_tests:
17-
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
# macos-latest-xl -> not yet available (just part as a plan?)
20+
# macos-latest -> is not amd64 (but x86) that is not supported
21+
os: [ ubuntu-latest, windows-latest ]
22+
runs-on: ${{ matrix.os }}
1823
steps:
1924
- uses: actions/checkout@v3
2025
- name: Set up Java and Maven

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Jenvtest is similar to envtest, to support unit testing with API Server - just f
44
https://book.kubebuilder.io/reference/envtest.html
55

66
It runs the API Server binaries directly (without nodes and other components). Thus, only etcd and Kubernetes API Server.
7+
Linux, Windows, Mac is supported on amd64 architecture.
78

89
Project is in early phases, heading towards mvp release.
910

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<version>0.0.1-SNAPSHOT</version>
99
<packaging>jar</packaging>
1010

11-
<name>k8s-api-wrapper</name>
11+
<name>jenvtest</name>
1212
<description>Java Wrapper Utility for Kubernetes API Server</description>
1313

1414
<properties>

src/main/java/com/csviri/jenvtest/binary/OSInfo.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ public String getOSName() {
66
String os = System.getProperty("os.name").toLowerCase();
77
if (os.contains("win")) {
88
return "windows";
9+
} else if (os.contains("mac")) {
10+
return "darwin";
911
} else {
1012
return os;
1113
}

0 commit comments

Comments
 (0)