Skip to content

Test runner does not work on windows-latest, but does on ubuntu-latest #200

@dev-cmurphy

Description

@dev-cmurphy

DESCRIPTION

I've got an error when I try to run the latest (2.10) release of the test runner:

 ##[group***Run game-ci/unity-test-runner@v2.1.0
with:
  artifactsPath: test-artifacts
  githubToken: ***
  checkName: All Modes Test Results
  coverageOptions: generateAdditionalMetrics;generateHtmlReport;generateBadgeReport;assemblyFilters:+Aleo.*-Aleo.Tests.*
  unityVersion: auto
  testMode: all
  useHostNetwork: false
env:
  UNITY_LICENSE: ***
##[endgroup***
D:\a\_actions\game-ci\unity-test-runner\v2.1.0\dist\main.js:1
index.js
^

ReferenceError: index is not defined
    at Object.<anonymous> (D:\a\_actions\game-ci\unity-test-runner\v2.1.0\dist\main.js:1:1)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain*** (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:17:47

But it works fine when I run it on ubuntu-latest.
The issue seems to be with the file dist\main.js which seems to be a recent addition to the unity-test-runner repo.
How to reproduce

REPRO STEPS & EXPECTED BEHAVIOUR

Use windows-latest as the value of the job runs-on parameter.

Expected: the action runs as normal.
Actual:

D:\a\_actions\game-ci\unity-test-runner\v2.1.0\dist\main.js:1
index.js
^

ReferenceError: index is not defined
    at Object.<anonymous> (D:\a\_actions\game-ci\unity-test-runner\v2.1.0\dist\main.js:1:1)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain*** (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:17:47

CONTEXT

Just tried to run the test-runner on windows-latest with the latest release of the test-runner (2.1.0).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions