Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Update @wordpress/env to 8.1.1 and re-enable PHP Unit Tests for PHP v 8.1 and 8.2 #9875

Merged
merged 37 commits into from
Sep 1, 2023
Merged
Show file tree
Hide file tree
Changes from 36 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
5278943
Update @wordpress/env to 8.1.1
kmanijak Jun 19, 2023
819612c
Re-enable PHP Unit Tests with PHP 8.1 and 8.2
kmanijak Jun 19, 2023
74dd047
Re-enable Docker debug step
kmanijak Jun 19, 2023
f9bebc3
Update the way commands are run on the docker-image
kmanijak Jun 19, 2023
ad5cc4a
Test if Playwright tests script is running with new command structure
kmanijak Jun 19, 2023
806930e
Update Playwright test-env-setup to run the commands according to new…
kmanijak Jun 19, 2023
7ea617e
Update the PHP unit tests command run
kmanijak Jun 19, 2023
1d94f31
Test command run
kmanijak Jun 19, 2023
019325e
Merge branch 'trunk' into update/wordpress/env
kmanijak Jun 19, 2023
243f16c
Fix block theme setup command
kmanijak Jun 19, 2023
61b3471
Update Classic theme setup command
kmanijak Jun 19, 2023
bcb9344
Merge branch 'trunk' into update/wordpress/env
imanish003 Jun 28, 2023
b9e522e
Refactor script escaping in test-env-setup.sh
imanish003 Jun 28, 2023
c596d9e
Refactor wp-env command usage across scripts
imanish003 Jun 28, 2023
d737125
Merge branch 'trunk' into update/wordpress/env
imanish003 Jun 28, 2023
b219865
Fix e2e tests for price filter (#10031)
imanish003 Jul 4, 2023
1cf25ab
Resolve conflicts
imanish003 Jul 4, 2023
d710648
Merge branch 'trunk' into update/wordpress/env
thealexandrelara Jul 7, 2023
debf887
Merge branch 'trunk' into update/wordpress/env
gigitux Aug 3, 2023
1f71354
Merge branch 'trunk' of https://github.com/woocommerce/woocommerce-bl…
gigitux Aug 4, 2023
6b548ae
Fix checkout header template test
albarin Aug 8, 2023
6b1bf02
Change comment
albarin Aug 9, 2023
8d590d1
Try waiting after saving template
albarin Aug 9, 2023
40e2879
Merge branch 'trunk' into update/wordpress/env
albarin Aug 9, 2023
a135280
Fix checkout template test
albarin Aug 10, 2023
30266cd
Merge branch 'trunk' into update/wordpress/env
albarin Aug 10, 2023
d3ce0b3
Merge remote-tracking branch 'origin/trunk' into update/wordpress/env
albarin Aug 11, 2023
3f080e1
Merge branch 'trunk' into update/wordpress/env
kmanijak Aug 22, 2023
d763879
Merge branch 'trunk' into update/wordpress/env
kmanijak Aug 23, 2023
c58acb4
Remove first() selector as there's single block like this
kmanijak Aug 23, 2023
b61d41d
Revert the last commit
kmanijak Aug 25, 2023
e176027
Merge branch 'trunk' into update/wordpress/env
dinhtungdu Sep 1, 2023
70d820c
reset the tests/e2e using trunk
dinhtungdu Sep 1, 2023
9e81866
update the way we pass command to cli container
dinhtungdu Sep 1, 2023
09bc001
avoid updating playwright
dinhtungdu Sep 1, 2023
1212128
update lock file
dinhtungdu Sep 1, 2023
783d348
Trigger Build
dinhtungdu Sep 1, 2023
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
26 changes: 4 additions & 22 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,38 +80,28 @@ jobs:
##
- name: Set up PHP
uses: shivammathur/setup-php@v2
# 8.1 and 8.2 are temporarily disabled as docker-images for those cause the errors when pipeline is running
if: ${{ matrix.php == '7.4' || matrix.php == '8.0' }}
with:
php-version: '${{ matrix.php }}'
ini-file: development
coverage: none

# Ensure that Composer installs the correct versions of packages.
- name: Override PHP version in composer.json
# 8.1 and 8.2 are temporarily disabled as docker-images for those cause the errors when pipeline is running
if: ${{ matrix.php == '7.4' || matrix.php == '8.0' }}
run: |
composer config platform.php ${{ matrix.php }}
composer update

- name: Install npm dependencies
# 8.1 and 8.2 are temporarily disabled as docker-images for those cause the errors when pipeline is running
if: ${{ matrix.php == '7.4' || matrix.php == '8.0' }}
run: |
npm ci
npm run build

- name: Docker debug information
# 8.1 and 8.2 are temporarily disabled as docker-images for those cause the errors when pipeline is running
if: ${{ matrix.php == '7.4' || matrix.php == '8.0' }}
run: |
docker -v
docker-compose -v

- name: General debug information
# 8.1 and 8.2 are temporarily disabled as docker-images for those cause the errors when pipeline is running
if: ${{ matrix.php == '7.4' || matrix.php == '8.0' }}
run: |
npm --version
node --version
Expand All @@ -121,26 +111,18 @@ jobs:
locale -a

- name: Start Docker environment
# 8.1 and 8.2 are temporarily disabled as docker-images for those cause the errors when pipeline is running
if: ${{ matrix.php == '7.4' || matrix.php == '8.0' }}
run: npm run wp-env start --update

- name: Log running Docker containers
# 8.1 and 8.2 are temporarily disabled as docker-images for those cause the errors when pipeline is running
if: ${{ matrix.php == '7.4' || matrix.php == '8.0' }}
run: docker ps -a

- name: Docker container debug information
# 8.1 and 8.2 are temporarily disabled as docker-images for those cause the errors when pipeline is running
if: ${{ matrix.php == '7.4' || matrix.php == '8.0' }}
run: |
npm run wp-env run tests-mysql mysql -- --version
npm run wp-env run tests-wordpress "php --version"
npm run wp-env run tests-wordpress "php -m"
npm run wp-env run tests-wordpress "php -i"
npm run wp-env run tests-wordpress "locale -a"
npm run wp-env run tests-wordpress php -- --version
npm run wp-env run tests-wordpress php -- -m
npm run wp-env run tests-wordpress php -- -i
npm run wp-env run tests-wordpress locale -- -a

- name: Run PHPUnit tests
# 8.1 and 8.2 are temporarily disabled as docker-images for those cause the errors when pipeline is running
if: ${{ matrix.php == '7.4' || matrix.php == '8.0' }}
run: npm run test:php
Loading