-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release 1.4.0
- Loading branch information
Showing
29 changed files
with
1,064 additions
and
414 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,82 @@ | ||
name: Linting & Test | ||
on: [push] | ||
jobs: | ||
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 | ||
lint: | ||
name: PHPCS Linting | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Cache dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/vendor | ||
key: test-lint-dependencies-{{ checksum "composer.json" }} | ||
restore-keys: test-lint-dependencies-{{ checksum "composer.json" }} | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.3 | ||
- name: Install dependencies | ||
run: composer install -n --prefer-dist | ||
- name: Run PHPCS | ||
run: composer lint | ||
php8-compatibility: | ||
name: PHP 8.x Compatibility | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- uses: pantheon-systems/phpcompatibility-action@dev | ||
with: | ||
paths: ${{ github.workspace }}/*.php ${{ github.workspace }}/inc/*.php | ||
test-versions: 8.0- | ||
wporg-validation: | ||
name: WP.org Plugin Validation | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- uses: pantheon-systems/[email protected] | ||
with: | ||
type: 'plugin' | ||
test: | ||
needs: lint | ||
name: Test | ||
runs-on: ubuntu-latest | ||
services: | ||
mariadb: | ||
image: mariadb:10.5 | ||
strategy: | ||
matrix: | ||
php_version: [7.4, 8.2, 8.3] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php_version }} | ||
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-dependencies-{{ checksum "composer.json" }} | ||
restore-keys: test-dependencies-{{ checksum "composer.json" }} | ||
- name: Install dependencies | ||
run: | | ||
if [ ${{ matrix.php_version }} = "7.4" ]; then | ||
composer update | ||
fi | ||
composer install | ||
- 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,24 @@ | ||
name: Lint and Test | ||
on: push | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
name: Lint | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Cache dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/vendor | ||
key: test-lint-dependencies-{{ checksum "composer.json" }} | ||
restore-keys: test-lint-dependencies-{{ checksum "composer.json" }} | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.0' | ||
- name: Install dependencies | ||
run: composer install -n --prefer-dist | ||
- name: Run PHP Lint | ||
run: composer phpcs |
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,14 @@ | ||
name: Shellcheck | ||
on: | ||
push: | ||
paths: | ||
- 'bin/*.sh' | ||
jobs: | ||
shellcheck: | ||
name: Shellcheck | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Shellcheck | ||
run: find bin/ -name "*.sh" | grep -v "install-wp-tests.sh" | xargs shellcheck |
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.