Skip to content

Commit

Permalink
Fix variables in WPCS and PHPUNIT
Browse files Browse the repository at this point in the history
  • Loading branch information
smileBeda committed May 23, 2024
1 parent 94ef967 commit 1cb1a34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/wpcs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:
wpcs:
name: WPCS Scan
runs-on: ubuntu-latest
env:
REPO_NAME: ${{ github.event.repository.name }}

steps:
- name: Checkout code
Expand All @@ -33,4 +35,4 @@ jobs:
- name: Run WPCS
run: |
~/.composer/vendor/bin/phpcs --standard=WordPress src/resources/* src/src/* src/index.php src/plugin-name.php --report=checkstyle | cs2pr
~/.composer/vendor/bin/phpcs --standard=WordPress src/resources/* src/src/* src/index.php src/$REPO_NAME.php --report=checkstyle | cs2pr
2 changes: 1 addition & 1 deletion config/phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</testsuites>
<php>
<env name="WP_TESTS_DIR" value="${WP_TESTS_DIR}"/>
<env name="WP_PLUGIN_SLUG" value="plugin-name"/>
<env name="WP_PLUGIN_SLUG" value="peakprosperity-deploy-control"/>
</php>

</phpunit>

0 comments on commit 1cb1a34

Please sign in to comment.