Skip to content

Commit

Permalink
Release/0.0.5 (#3)
Browse files Browse the repository at this point in the history
* chore: update deps

* feat: remove explicit dependencies from definitions

* chore: version bump

* chore: update plugin deps

* ci: update github workflows

* revert: cant update child version until theres a release

* chore: update changelog
  • Loading branch information
justlevine authored Nov 5, 2022
1 parent bcd5e3e commit 91432db
Show file tree
Hide file tree
Showing 10 changed files with 292 additions and 293 deletions.
29 changes: 13 additions & 16 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
branches:
- develop
- main

jobs:
run:
runs-on: ubuntu-latest
Expand All @@ -24,32 +25,28 @@ jobs:
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3

steps:
- name: Cancel previous runs of this workflow (pull requests only)
if: ${{ github.event_name == 'pull_request' }}
uses: styfle/cancel-workflow-action@0.5.0
with:
access_token: ${{ github.token }}

- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup PHP w/ Composer & WP-CLI
uses: shivammathur/setup-php@v2
with:
php-version: 8.0
extensions: mbstring, intl, bcmath, exif, gd, mysqli, opcache, zip, pdo_mysql
coverage: none
tools: composer, wp-cli

- name: Get Composer Cache Directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
working-directory: ./wp-graphql-plugin-name

- name: Cache dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: php-${{ matrix.php }}-${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: php-${{ matrix.php }}N-${{ runner.os }}-composer
tools: composer:v2

- name: Install dependencies
run: composer install
working-directory: ./wp-graphql-plugin-name
uses: ramsey/composer-install@v2
with:
working-directory: ./wp-graphql-plugin-name
composer-options: "--no-progress"

- name: Setup WordPress
run: |
Expand Down
31 changes: 18 additions & 13 deletions .github/workflows/code-standard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,37 +9,42 @@ on:
branches:
- develop
- main

jobs:
run:
runs-on: ubuntu-latest
name: Checkout repo
steps:
- name: Cancel previous runs of this workflow (pull requests only)
if: ${{ github.event_name == 'pull_request' }}
uses: styfle/cancel-workflow-action@0.5.0
with:
access_token: ${{ github.token }}

- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
- name: Checkout
uses: actions/checkout@v3

- name: Setup PHP w/ Composer & WP-CLI
uses: shivammathur/setup-php@v2
with:
php-version: 8.0
coverage: none
extensions: mbstring, intl
tools: composer
tools: composer:v2

- name: Get Composer Cache Directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
working-directory: ./wp-graphql-plugin-name


- name: Cache dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer


- name: Install dependencies
run: composer install
working-directory: ./wp-graphql-plugin-name
uses: ramsey/composer-install@v2
with:
composer-options: "--no-progress"
working-directory: ./wp-graphql-plugin-name

- name: Run PHP_CodeSniffer
run: composer run-script check-cs
Expand Down
13 changes: 9 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## v0.0.5
* feat: move explicit 3rd party dependencies to doc-blocks.
* chore: update composer deps.
* ci: update GH workflows.

## v0.0.4
* dev!: Renames the Hookable interface to `Registrable.
* feat!: Use Registrable when registering GraphQL types.
Expand All @@ -9,10 +14,10 @@
* chore: Exclude `wp-graphql-plugin-name` when installing as composer dep.

## v0.0.2
* Dev: Build composer deps on PHP 7.4.
* Chore: Update composer deps.
* Chore: Remove unused PHPStan ignored error.
* CI: Update PHP version used for CodeQuality.
* dev: Build composer deps on PHP 7.4.
* chore: Update composer deps.
* chore: Remove unused PHPStan ignored error.
* ci: Update PHP version used for CodeQuality.

## v0.0.1
* Initial Release
Loading

0 comments on commit 91432db

Please sign in to comment.