game-ci / unity-test-runner

Run tests for any Unity project
https://github.com/marketplace/actions/unity-test-runner
MIT License
210 stars 135 forks source link

unityLicensingServer is ignored on Windows #280

Open shat00n opened 3 months ago

shat00n commented 3 months ago

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