Skip to content

Commit

Permalink
Ensure we setup the testing env First
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Wiegman committed Apr 10, 2024
1 parent 4f45169 commit cb325fb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,16 @@ jobs:
sleep 1
done
- name: Setup testing framework
working-directory: ./
run: docker exec -e COVERAGE=1 $(docker-compose ps -q wordpress) init-testing-environment.sh

- name: Ensure Correct WordPress version
run: |
docker exec --workdir=/var/www/html/wp-content/plugins/wp-graphql-content-blocks $(docker-compose ps -q wordpress) wp core version --allow-root
docker exec --workdir=/var/www/html/wp-content/plugins/wp-graphql-content-blocks $(docker-compose ps -q wordpress) wp core download --version=nightly --force --allow-root
docker exec --workdir=/var/www/html/wp-content/plugins/wp-graphql-content-blocks $(docker-compose ps -q wordpress) wp core version --allow-root
- name: Setup testing framework
working-directory: ./
run: docker exec -e COVERAGE=1 $(docker-compose ps -q wordpress) init-testing-environment.sh

- name: Install and activate WP GraphQL
working-directory: ./
run: docker exec --workdir=/var/www/html/wp-content/plugins/wp-graphql-content-blocks $(docker-compose ps -q wordpress) wp plugin install wp-graphql --activate --allow-root
Expand Down

0 comments on commit cb325fb

Please sign in to comment.