-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #150 from pantheon-systems/release_0.4.4
Release 0.4.4
- Loading branch information
Showing
22 changed files
with
1,148 additions
and
626 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,22 @@ | ||
name: Build, Tag and Release | ||
on: | ||
push: | ||
branches: | ||
- 'release' | ||
|
||
permissions: | ||
pull-requests: write | ||
contents: write | ||
|
||
jobs: | ||
tag: | ||
name: Tag and Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build, tag and release | ||
uses: pantheon-systems/plugin-release-actions/build-tag-release@main | ||
with: | ||
gh_token: ${{ github.token }} | ||
generate_release_notes: "true" | ||
draft: "true" |
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,99 @@ | ||
name: Lint & Test | ||
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
push: | ||
branches: | ||
- '**' | ||
jobs: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install Composer dependencies | ||
run: composer install --no-interaction --prefer-dist | ||
- name: Run PHP Lint | ||
run: composer phpcs | ||
wporg-validation: | ||
name: WP.org Plugin Validation | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: pantheon-systems/[email protected] | ||
with: | ||
type: 'plugin' | ||
validate-readme-spacing: | ||
name: Validate README Spacing | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- uses: pantheon-systems/validate-readme-spacing@v1 | ||
php8-compatibility: | ||
name: PHP 8.x Compatibility | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: PHP Compatibility | ||
uses: pantheon-systems/phpcompatibility-action@dev | ||
with: | ||
test-versions: 8.0- | ||
paths: ${{ github.workspace }}/*.php ${{ github.workspace }}/inc/*.php | ||
test-phpunit-74: | ||
needs: lint | ||
runs-on: ubuntu-latest | ||
services: | ||
mariadb: | ||
image: mariadb:10.5 | ||
name: PHP 7.4 Unit Tests | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup PHP 7.4 | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 7.4 | ||
extensions: mysqli, zip, imagick | ||
- name: Start MySQL Service | ||
run: sudo systemctl start mysql | ||
- name: Cache dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/vendor | ||
key: test-phpunit-dependencies-${{ hashFiles('composer.json') }} | ||
restore-keys: test-phpunit-dependencies-${{ hashFiles('composer.json') }} | ||
- name: Install Composer dependencies | ||
run: | | ||
composer update && composer install | ||
- name: Run PHP linting | ||
run: composer phplint | ||
- name: Run PHPUnit | ||
run: bash ./bin/phpunit-test.sh | ||
test-phpunit-83: | ||
needs: lint | ||
runs-on: ubuntu-latest | ||
services: | ||
mariadb: | ||
image: mariadb:10.6 | ||
name: PHP 8.3 Unit Tests | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup PHP 8.3 | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.3 | ||
extensions: mysqli, zip, imagick | ||
- name: Start MySQL Service | ||
run: sudo systemctl start mysql | ||
- name: Cache dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/vendor | ||
key: test-phpunit-dependencies-${{ hashFiles('composer.json') }} | ||
restore-keys: test-phpunit-dependencies-${{ hashFiles('composer.json') }} | ||
- name: Install Composer dependencies | ||
run: composer install | ||
- name: Run PHP linting | ||
run: composer phplint | ||
- name: Run PHPUnit | ||
run: bash ./bin/phpunit-test.sh |
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,18 @@ | ||
name: Validate Plugin "Tested Up To" Version | ||
on: | ||
schedule: | ||
- cron: '0 0 * * 0' | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
validate-wp-version: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Validate Plugin Tested Up To Version | ||
uses: jazzsequence/action-validate-plugin-version@v1 | ||
with: | ||
filenames: 'readme.txt,README.md' | ||
branch: 'main' |
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
Validating CODEOWNERS rules …
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 |
---|---|---|
@@ -1,4 +1 @@ | ||
# Code owners. See: | ||
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners | ||
|
||
* @pantheon-systems/cms-ecosystem | ||
* @pantheon-systems/site-experience |
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
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
Oops, something went wrong.