From fc08498f48772fb81cb654676533e72af1ef0c33 Mon Sep 17 00:00:00 2001 From: Chris Reynolds Date: Wed, 31 Jul 2024 16:14:50 -0600 Subject: [PATCH] install graphql as part of the workflow --- .github/workflows/playwright.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index e78c1960..31ef1c59 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -417,6 +417,10 @@ jobs: echo "Copying latest changes and committing to the site." rsync -a --exclude='.git' --exclude='status-*.txt' --exclude="node_modules" "${{ github.workspace }}/" . + + echo "Installing wp-graphql..." + composer require wp-graphql/wp-graphql + git add -A git commit -m "Update to latest commit: ${{ env.COMMIT_MSG }}" || true git push origin master || true @@ -427,6 +431,9 @@ jobs: echo "Checking WordPress install status" terminus wp "${{ env.SITE_ID }}".dev -- cli info + # Activte WP-GraphQL plugin + terminus wp "${{ env.SITE_ID }}".dev -- plugin activate wp-graphql + # Run curl checks against the site URLs to ensure the main site and the subdomain site exist. echo "Checking site URLs" SITE_URL_TEST=$(curl -s -o /dev/null -w "%{http_code}" ${{ env.SITE_URL }})