Skip to content

Commit 50bd1ec

Browse files
committed
update tests for github actions — wip
1 parent 9ac28ac commit 50bd1ec

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,15 @@ jobs:
7070
7171
- name: Setup TypeRocket test install
7272
run: vendor/typerocket/core/bin/setup-github-actions.sh
73+
env:
74+
DB_NAME: wordpress
75+
DB_USER: root
76+
DB_PASSWORD: ''
77+
DB_HOST: 127.0.0.1
78+
ALT_DB_NAME: tr_v51_alt
79+
80+
- name: Verify WordPress database
81+
run: php galaxy wp db check
7382

7483
- name: Run tests
7584
working-directory: vendor/typerocket/core

bin/setup-github-actions.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ php galaxy root:install "$DB_NAME" "$DB_USER" "$DB_PASSWORD"
1515

1616
php galaxy config:seed
1717

18+
sed -i "s/define( 'DB_HOST', '.*' );/define( 'DB_HOST', '$DB_HOST' );/" wp-config.php
19+
1820
if ! grep -q "TYPEROCKET_ALT_DATABASE_DATABASE" wp-config.php; then
1921
sed -i "/\/\* That's all, stop editing! Happy publishing\. \*\//i\\
2022
define( 'TYPEROCKET_ALT_DATABASE_USER', '$DB_USER' );\\

0 commit comments

Comments
 (0)