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

Check always failed with Exit Code = 1 #189

Open
th-guenther opened this issue Oct 14, 2024 · 2 comments
Open

Check always failed with Exit Code = 1 #189

th-guenther opened this issue Oct 14, 2024 · 2 comments

Comments

@th-guenther
Copy link

th-guenther commented Oct 14, 2024

Unfortunately the tests every time fail:

✔ Ran `wp plugin list-checks` in 'cli'. (in 0s 555ms)
ℹ Starting 'wp plugin list-check-categories' on the cli container. 
name	slug
General	general
Plugin Repo	plugin_repo
Security	security
Performance	performance
Accessibility	accessibility
✔ Ran `wp plugin list-check-categories` in 'cli'. (in 0s 744ms)
ℹ Starting 'wp plugin check MY_PLUGIN_NAME --format=json --categories=performance,accessibility,plugin_repo,security --require=./wp-content/plugins/plugin-check/cli.php' on the cli container. 
Error: 
✖ Command failed with exit code 1
Command failed with exit code 1
Error: Process completed with exit code 1.

I also used the sample yaml file from your repo:

name: 'build-test'
on: # rebuild any PRs and main branch changes
  pull_request:
  push:


jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v3

      - name: Run plugin check
        uses: wordpress/plugin-check-action@v1
        with:
          categories: |
            performance
            accessibility
            plugin_repo
            security

Executing the code wp plugin check MY_PLUGIN_NAME --format=json --categories=performance,accessibility,plugin_repo,security --require=./wp-content/plugins/plugin-check/cli.php directly on my machine works correctly.

So can you please help me?

@swissspidy
Copy link
Member

Can you please share the link to the repo where you tried adding the action?

From the snippet you shared it's not clear what's going on.

@swissspidy
Copy link
Member

@th-guenther friendly ping 👋 would love to help get to the bottom of this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants