Skip to content

Commit

Permalink
chore: confirm we are running phpunit from right place
Browse files Browse the repository at this point in the history
  • Loading branch information
HardeepAsrani committed Aug 14, 2024
1 parent 74d60c8 commit 223bcfe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
- name: Setup PHP version
uses: shivammathur/setup-php@v2
with:
php-version: '7.2'
php-version: '7.1'
extensions: simplexml, mysql
tools: phpunit-polyfills
- name: Checkout source code
Expand All @@ -69,4 +69,4 @@ jobs:
- name: Install composer
run: composer install --prefer-dist --no-progress --no-suggest
- name: Run phpunit
run: phpunit
run: npm run test
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@
"lint:js": "wp-scripts lint-js './assets/js/src/**/*.js'",
"format:js": "wp-scripts format assets/js/src/**/*.js",
"lint:scss": "wp-scripts lint-style './assets/css/src/**/*.scss'",
"format:scss": "wp-scripts lint-style './assets/css/src/**/*.scss' --fix"
"format:scss": "wp-scripts lint-style './assets/css/src/**/*.scss' --fix",
"test": "phpunit --configuration phpunit.xml"
},
"simple-git-hooks": {
"pre-commit": "npx lint-staged"
Expand Down

0 comments on commit 223bcfe

Please sign in to comment.