Skip to content

Commit

Permalink
Merge pull request #88 from Automattic/update/wp-graphql-block-data-api
Browse files Browse the repository at this point in the history
Update WP-GraphQL and VIP Block Data API versions
  • Loading branch information
ingeniumed authored Feb 2, 2025
2 parents 7c26592 + a184624 commit fd12880
Show file tree
Hide file tree
Showing 128 changed files with 7,441 additions and 6,346 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 1.2.3

- **WPGraphQL:** Updated to v1.29.3.
- **VIP Block Data API:** Updated to v1.4.3.

## 1.2.2

- [**Update WPGraphQL to v1.22.1**](/~https://github.com/Automattic/vip-decoupled-bundle/pull/85): Updates WPGraphQL to v1.22.1
Expand Down
56 changes: 29 additions & 27 deletions lib/vip-block-data-api/.github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,50 +7,52 @@ concurrency:
cancel-in-progress: true

jobs:
build:
test:
# Alias 'master' to 'latest'
name: WP ${{ matrix.wp == 'master' && 'latest' || matrix.wp }} and PHP ${{ matrix.php }}
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.allowed_failure }}

strategy:
fail-fast: false
matrix:
php-versions:
- 8.0

env:
DB_DATABASE: test_db
DB_USER: root
DB_PASSWORD: root
include:
# Check lowest supported WP version, with the lowest supported PHP.
- php: "8.0"
wp: "6.0"
allowed_failure: false
# Check latest WP with the lowest supported PHP.
- php: "8.0"
wp: "master"
allowed_failure: false
# Check latest WP with the highest supported PHP.
- php: "8.3"
wp: "master"
allowed_failure: false

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Checkout code
uses: actions/checkout@v4

- name: Install wordpress environment
run: npm -g install @wordpress/env

- name: Setup PHP
- name: Setup PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer
php-version: ${{ matrix.php-versions }}

- name: Setup MySQL
run: |
sudo /etc/init.d/mysql start

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
- name: Install Composer dependencies
uses: ramsey/composer-install@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
run: composer install --prefer-dist --no-progress
composer-options: --prefer-dist --no-progress

- name: Setup the wordpress environment
- name: Setup wp-env
run: wp-env start
env:
WP_ENV_CORE: WordPress/WordPress#${{ matrix.wp }}
WP_ENV_PHP_VERSION: ${{ matrix.php }}

- name: PHPUnit
run: composer test
Expand Down
Loading

0 comments on commit fd12880

Please sign in to comment.