Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
# No cache — lock file is not committed.

- name: Install dependencies
run: npm ci
run: npm install --legacy-peer-deps

- name: Run JS unit tests
run: npm run test:unit
Expand All @@ -53,10 +53,10 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
# No cache — lock file is not committed.

- name: Install dependencies
run: npm ci
run: npm install --legacy-peer-deps

- name: Override PHP version
run: |
Expand All @@ -69,10 +69,10 @@ jobs:
WP_ENV_LIFECYCLE_TIMEOUT: 300

- name: Install Composer dependencies
run: npx wp-env run tests-cli --env-cwd=wp-content/plugins/multi-author-posts -- composer install --no-interaction
run: npx wp-env run cli --env-cwd=wp-content/plugins/multi-author-posts -- composer install --no-interaction

- name: Run PHP tests via wp-env
run: npx wp-env run tests-cli --env-cwd=wp-content/plugins/multi-author-posts -- vendor/bin/phpunit
run: npx wp-env run cli --env-cwd=wp-content/plugins/multi-author-posts -- vendor/bin/phpunit

- name: Stop wp-env
if: always()
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ node_modules/
vendor/
build/
*.log
package-lock.json
composer.lock
.wp-env.override.json
7 changes: 0 additions & 7 deletions .wp-env.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,5 @@
"WP_DEBUG_LOG": true,
"SCRIPT_DEBUG": true,
"WP_ALLOW_MULTISITE": true
},
"env": {
"tests": {
"config": {
"WP_DEBUG": false
}
}
}
}
Loading