Skip to content

Action doesn't work under Windows runner #21

Closed
@adangel

Description

Log output:

Run pmd/pmd-github-action@features/annotation
  with:
    sourcePath: src/main/java
    rulesets: ruleset.xml,category/java/design.xml/AbstractClassWithoutAnyMethod
    version: latest
"C:\Program Files\PowerShell\7\pwsh.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command "$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ; try { [System.IO.Compression.ZipFile]::ExtractToDirectory('D:\a\_temp\d900343f-1477-4896-849f-4ad7c682771e', 'D:\a\_temp\31b52bc9-9a59-4858-a700-f782163268ae', $true) } catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath 'D:\a\_temp\d900343f-1477-4896-849f-4ad7c682771e' -DestinationPath 'D:\a\_temp\31b52bc9-9a59-4858-a700-f782163268ae' -Force } else { throw $_ } } ;"
Using PMD 6.41.0 from cached path C:\hostedtoolcache\windows\pmd\6.41.0\x64
Error: Unable to locate executable file: C:\hostedtoolcache\windows\pmd\6.41.0\x64/pmd-bin-6.41.0/bin/run.sh. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.
PMD exited with undefined

PMD detected 0 violations.
Error: File pmd-report.sarif does not exist

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions