Skip to content

Commit

Permalink
Clone GlotPress in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
psrpinto committed Feb 21, 2024
1 parent 49af368 commit 3a8cb94
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/install-wp-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,11 @@ install_db() {
fi
}

install_gp() {
git clone --branch develop --single-branch -q https://github.com/GlotPress/GlotPress.git "$WP_CORE_DIR/wp-content/plugins/glotpress"
}

install_wp
install_test_suite
install_db
install_gp
3 changes: 3 additions & 0 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
}

function _glotpress_path( string $path ): string {
if ( getenv( 'GITHUB_ACTIONS' ) ) {
return '/tmp/wordpress/wp-content/plugins/glotpress';
}
return dirname( __DIR__, 2 ) . '/glotpress/' . $path;
}

Expand Down

0 comments on commit 3a8cb94

Please sign in to comment.