game-ci / game-ci/unity-test-runner

unityLicensingServer is ignored on Windows

Open
#280 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
265
Forks
149
Avg merge
3h 3m
Merged PRs (30d)
2

Description

**Bug description**
The `unityLicensingServer` input is completely ignored when running on Windows.

**How to reproduce**
1. setup a job on windows github runner
```
runs-on: windows-latest
```
2. add a step with `game-ci/unity-test-runner` and `unityLicensingServer` in inputs:
```
- name: Test
uses: game-ci/unity-test-runner@main
with:
unityLicensingServer: https://server..
projectPath: .
testMode: playmode
artifactsPath: reports
checkName: UnitTests Results
```
3. Run
- **Result**
The run fails with
```
License activation strategy could not be determined.

Visit https://game.ci/docs/github/activation for more
details on how to set up one of the possible activation strategies.
Error: No valid license activation strategy could be determined. Make sure to provide UNITY_EMAIL, UNITY_PASSWORD, and either a UNITY_SERIAL \
or UNITY_LICENSE. See more info at https://game.ci/docs/github/activation
Error: The process 'C:\Windows\system32\docker.exe' failed with exit code 1
```
- **Expected behavior**
The entrypoint script will acquire a new license like it does in Linux:
```
2024-07-24T12:07:24.1498242Z Adding licensing server config
2024-07-24T12:07:25.6318651Z Acquired floating license: "ab19b004-37e1-4f9c-..." with timeout 2024-07-
24T12:22:24.9628870+00:00
```

**Additional details**
The same issue was resolved in unity-builder a few months ago - https://github.com/game-ci/unity-builder/pull/638/files

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.