PavanMudigonda / jacoco-reporter

GitHub Action to Publish JaCoCo Format Code Coverage XML and attach it to the Workflow Run as a Check Run. Also can enforce Coverage Quality Gate.
https://linkedin.com/in/PavanMudigonda
MIT License
63 stars 7 forks source link

Unable to locate executable file: pwsh on Self-hosted GitHub Runner #55

Open dmytro-orlenko opened 6 months ago

dmytro-orlenko commented 6 months ago

Describe the bug Error: Unable to locate executable file: pwsh. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.

I've used Self-Hosted Github Runner on my own Kubernetes Cluster (1.28) Runner work on image - summerwind/actions-runner-dind:v2.311.0-ubuntu-20.04

    - name: Publish Test Coverage Report
      id: jacoco_report
      uses: PavanMudigonda/jacoco-reporter@v4.9
      with:
        coverage_results_path: ${{ github.workspace }}/build/jacoco.xml
        coverage_report_name: Coverage
        coverage_report_title: JaCoCo
        github_token: ${{ secrets.GITHUB_TOKEN }}
        skip_check_run: false
        minimum_coverage: 80
        fail_below_threshold: false
        publish_only_summary: false
PavanMudigondaTR commented 4 months ago

@dmytro-orlenko Thanks for reporting this. I can add extra step to detect presence of pwsh and if not found i can instal it via this github action ! I will fix this soon.