Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENOENT: no such file or directory error on Action Summary #42

Open
1 task done
kuldeep3 opened this issue Mar 5, 2024 · 2 comments
Open
1 task done

ENOENT: no such file or directory error on Action Summary #42

kuldeep3 opened this issue Mar 5, 2024 · 2 comments
Labels
type:question Further information is requested.

Comments

@kuldeep3
Copy link

kuldeep3 commented Mar 5, 2024

Describe your question

I am using the below code for adding linting checks using github actions, but getting ENOENT error on action summary

name: WordPress Coding Standard Check

on: pull_request


jobs:
  phpcs:
      name: VIPCS
      runs-on: ubuntu-latest
      steps:
        - uses: actions/checkout@v3
        - name: VIPCS check
          uses: 10up/wpcs-action@stable
          with:
            standard: 'WordPress-VIP-Go'
            use_local_config: true
            extra_args: '--report-json=./phpcs.json'
            paths: ${{ github.event.pull_request.changed_files }}
        - name: Update summary
          run: |
            npm i -g github:10up/phpcs-json-to-md
            phpcs-json-to-md --path ./phpcs.json --output ./phpcs.md
            cat phpcs.md >> $GITHUB_STEP_SUMMARY
          if: always()

Is there something wrong in the implementation? Also, is there a way I can only check the files that are in the PR instead of whole code?

Code of Conduct

  • I agree to follow this project's Code of Conduct
@kuldeep3 kuldeep3 added the type:question Further information is requested. label Mar 5, 2024
@jeffpaul
Copy link
Member

jeffpaul commented Mar 5, 2024

@kuldeep3 try quotes around the use_local_config value. I'm checking on the paths arg to ensure that's correctly formatted as well.

@raulillana
Copy link

raulillana commented Apr 15, 2024

This problem is not resolved with quotes.

Captura de pantalla 2024-04-15 a las 14 42 05

EDIT: BTW the solution for me was to get the right params into PHPCS so the JSON file is generated correctly. Also using NPX instead of NPM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:question Further information is requested.
Projects
Status: Incoming
Development

No branches or pull requests

3 participants