This repository has been archived by the owner on Jul 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge commit '4d62d712788ba65ddf134e6fb6923f22d36f8894' into release/…
…v0.5.3 # Conflicts: # vendor/composer/InstalledVersions.php # vendor/composer/installed.php
- Loading branch information
Showing
54 changed files
with
1,974 additions
and
1,739 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Upload Schema Artifact | ||
|
||
on: | ||
release: | ||
types: [ published ] | ||
|
||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
name: Generate and Upload WPGraphQL for ACF Schema Artifact | ||
services: | ||
mariadb: | ||
image: mariadb | ||
ports: | ||
- 3306:3306 | ||
env: | ||
MYSQL_ROOT_PASSWORD: root | ||
# Ensure docker waits for mariadb to start | ||
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP w/ Composer & WP-CLI | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 7.3 | ||
extensions: mbstring, intl, bcmath, exif, gd, mysqli, opcache, zip, pdo_mysql | ||
coverage: none | ||
tools: composer, wp-cli | ||
|
||
- name: Setup WordPress | ||
run: | | ||
composer run install-test-env | ||
- name: Install WP CLI for ACF | ||
run: | | ||
wp plugin install https://github.com/hoppinger/advanced-custom-fields-wpcli/archive/refs/heads/master.zip --activate --path="/tmp/wordpress" | ||
- name: Import test Field Group | ||
run: | | ||
wp acf import --json_file="${GITHUB_WORKSPACE}/docs/field-group-examples-export.json" --path="/tmp/wordpress" | ||
- name: Generate the Static Schema | ||
run: | | ||
cd /tmp/wordpress/ | ||
# Output: /tmp/schema.graphql | ||
wp graphql generate-static-schema | ||
- name: Upload schema as release artifact | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: /tmp/schema.graphql | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,6 @@ vendor/composer/installed.json | |
vendor/composer/*/ | ||
composer.lock | ||
.log | ||
local | ||
wp-content | ||
|
Oops, something went wrong.