Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
ASpiteri-BCGov committed Sep 27, 2024
1 parent 2373d27 commit 825bfc8
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 198 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/phpunit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,19 @@ jobs:
- name: Wait for MySQL
run: |
for i in {1..30}; do
if mysqladmin ping -h 127.0.0.1 --silent; then
if mysqladmin ping -h localhost --silent; then
break
fi
echo "Waiting for MySQL..."
sleep 2
done
- name: Create Test Environment
<<<<<<< HEAD
run: bin/install-wp-tests.sh wordpress_test root 'rootpassword' 127.0.0.1 latest
=======
run: bin/install-wp-tests.sh wordpress_test root 'rootpassword' localhost latest
>>>>>>> parent of 01525be (test)

- name: Run PHPUnit tests
run: vendor/bin/phpunit --configuration phpunit.xml.dist
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ coverage
.vscode/**
.wp-env.json
./
/wordpress

# documentation
documentation/docs/.vuepress/.temp
documentation/docs/.vuepress/.cache
Expand Down
12 changes: 4 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,8 @@
],
"require-dev": {
"bcgov/wordpress-scripts": "2.1.2",
"phpunit/phpunit": "^9.6",
"yoast/phpunit-polyfills": "^2.0"
},
"require": {
"roots/wordpress": "6.0"
"phpunit/phpunit": "^9.0",
"yoast/phpunit-polyfills": "^1.0"
},
"autoload": {
"psr-4": {
Expand All @@ -32,7 +29,7 @@
}
},
"scripts": {
"version-update": "bash update_version.sh",
"version-update":"bash update_version.sh",
"production": [
"composer validate",
"Bcgov\\Script\\Checklists::postProductionChecks"
Expand All @@ -57,8 +54,7 @@
"config": {
"allow-plugins": {
"composer/installers": true,
"dealerdirect/phpcodesniffer-composer-installer": true,
"roots/wordpress-core-installer": true
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}
197 changes: 9 additions & 188 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 825bfc8

Please sign in to comment.