Skip to content

Apex PMD GitHub Actions #4041

Discussion options

You must be logged in to vote

Hi @jurgenvanwestreenen ,

I couldn't reproduce your problem - there doesn't seem to be a general problem. E.g. pmd/pmd-github-action-tests#8 works as expected (I also used the sourcePath parameter here).

The action uses the GitHub API to determine the files, that have been modified in the PR - that's how we figure out, that force-app/main/default/classes/BotController.cls needs to be analyzed.

But the error "No such file" we print only, if there is indeed no such file... Until now, we didn't access the local file system, we just used the GitHub API.

Looking further, I'm missing in your workflow the step to checkout the repository... That's what I've done in the Test PR, I've created. I gu…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jurgenvanwestreenen
Comment options

@jurgenvanwestreenen
Comment options

@adangel
Comment options

Answer selected by adangel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants