Skip to content

Commit

Permalink
- add composer install step to the workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonbahl committed Mar 27, 2024
1 parent 2af5318 commit 01dca1b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/graphiql-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,18 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
extensions: mbstring, intl
tools: composer

- name: Install PHP dependencies
run: |
composer install --optimize-autoloader
- name: Install JavaScript dependencies
run: npm ci

- name: Build Assets
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/specs/graphiql.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export async function loadGraphiQL( page, queryParams = { query: null, variables

// if there's an error, go to the plugins page
if ( ! pageTitle.includes( 'GraphiQL' ) ) {
page.goto( wpAdminUrl + '/plugins.php' )
page.goto( wpAdminUrl + '/plugins.php', { waitUntil: 'networkidle' } )
}

await page.waitForLoadState( 'networkidle' );
Expand Down

0 comments on commit 01dca1b

Please sign in to comment.