-
Notifications
You must be signed in to change notification settings - Fork 13
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
Job summary can't find resources for JSON to MD #18
Comments
@dinhtungdu I'm guessing this is because the |
@B-Interactive can you please share the configuration you're using so we can look at it further? @jeffpaul I don't think so as in the example, we use |
I use the same configuration (https://github.com/10up/wpcs-action#display-the-linting-result-in-the-github-actions-summary ) |
@dinhtungdu, this is the configuration I was using, that produced the error. It is a slightly modified version of the example here:
|
@B-Interactive @WEBzaytsev thanks so much for your report, I can reproduce the issue on my local. Can you please try setting the node version to
|
Thanks @dinhtungdu, that is working. It did take more than 13 minutes at the Update summary step. I'm not sure if that's expected. |
@B-Interactive It's definitely unexpected, the npx installation took so long. @jeffpaul I think we need to create a stable branch and push the built command there to speedup the installation. |
@iamdharmesh Tung's note above might be something worth researching in your next spin through OSS time. |
Hi @jeffpaul, As
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 16.16.0
- name: WPCS check
uses: 10up/wpcs-action@stable
with:
standard: 'WordPress'
extra_args: '--report-json=./phpcs.json'
- name: Update summary
run: |
npx github:10up/phpcs-json-to-md --path ./phpcs.json --output ./phpcs.md
cat phpcs.md >> $GITHUB_STEP_SUMMARY
if: always() OR
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
- name: WPCS check
uses: 10up/wpcs-action@stable
with:
standard: 'WordPress'
extra_args: '--report-json=./phpcs.json'
- 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()
@dinhtungdu @jeffpaul as this issue is with the old version of npm only, I think it's fine to keep Thanks |
@iamdharmesh I think I'm in favor of the approach using |
Thanks for the feedback @jeffpaul PR raised for the same. |
Describe your question
Using the Display the linting result in the GitHub Actions summary example, I was able to successfully set up an action that tests my repository.
However, it looks to be failing with a
404 Not Found
error when trying to convert JSON to MD, at the Job Summary creation step.Have I missed (or misunderstood) a step somewhere?
Code of Conduct
The text was updated successfully, but these errors were encountered: