Skip to content

Commit

Permalink
Support testing on 1.20.6 - 1.21.3 (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
turikhay authored Nov 4, 2024
1 parent 96b8d50 commit 23dc272
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/e2e_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
fail-fast: false
matrix:
version:
- 1.21.1
- 1.20.6
- 1.20.4
- 1.19.4
- 1.18.2
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/e2e_notable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
fail-fast: false
matrix:
version:
- 1.21.1
- 1.16.5
- 1.16.3
- 1.13.2
Expand All @@ -39,7 +40,7 @@ jobs:
fail-fast: false
matrix:
version:
- 1.20.4
- 1.20.6
proxy:
- velocity
- bungeecord
Expand Down
39 changes: 32 additions & 7 deletions tests_e2e/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@
))
),
**(
dict((version, {}) for version in (
dict((version, {
'java': 17,
}) for version in (
'1.17.1',
'1.18.2',
'1.19.3',
Expand All @@ -95,6 +97,7 @@
dict((
version,
{
'java': 17,
'folia': True,
},
) for version in (
Expand All @@ -105,9 +108,32 @@
dict((
version,
{
'java': 21,
'folia': True,
},
) for version in (
'1.20.6',
))
),
**(
dict((
version,
{
'java': 21,
},
) for version in (
'1.21.1',
))
),
**(
dict((
version,
{
'java': 21,
'bot': False,
},
) for version in (
'1.21.3',
))
),
}
Expand Down Expand Up @@ -214,7 +240,7 @@ def save(data):
]

debug_level = int(environ.get("DEBUG")) if environ.get("DEBUG") else 0
debug = debug_level or environ.get("ACTIONS_STEP_DEBUG") == "true"
debug = debug_level > 0
basicConfig(
level=DEBUG if debug else INFO
)
Expand Down Expand Up @@ -286,16 +312,14 @@ def save(data):
bot_container = None
assert action not in ("test",)

if "java" in version_info:
server_java_version = version_info["java"]
else:
server_java_version = 17

if "server" in version_info:
server_version = version_info["server"]
else:
server_version = client_version

assert "java" in version_info, f"java version for {server_version} is not defined"
server_java_version = version_info["java"]

if "world" in version_info:
world_version = version_info["world"]
else:
Expand Down Expand Up @@ -470,6 +494,7 @@ def save(data):
] if debug else [
'-f',
'bot',
*servers,
])
],
stdout=PIPE,
Expand Down

0 comments on commit 23dc272

Please sign in to comment.