-
-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
51 changed files
with
284 additions
and
243 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: Testing Integration | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
- master | ||
pull_request: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
env: | ||
coverage: 0 | ||
debug: 0 | ||
strategy: | ||
matrix: | ||
php: ['7.3', '7.2', '7.1', '7.0'] | ||
wordpress: ['5.3', '5.0', '4.9'] | ||
include: | ||
- php: '7.0' | ||
use_xdebug: 1 | ||
- php: '7.0' | ||
wordpress: '5.0' | ||
coverage: 1 | ||
|
||
exclude: | ||
- php: '7.3' | ||
wordpress: '4.9' | ||
- php: '7.2' | ||
wordpress: '4.9' | ||
- php: '7.0' | ||
wordpress: '5.3' | ||
fail-fast: false | ||
name: WordPress ${{ matrix.wordpress }} on PHP ${{ matrix.php }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
|
||
- name: Build "testing" Docker Image | ||
run: | | ||
docker-compose build \ | ||
--build-arg PHP_VERSION=${{ matrix.php }} \ | ||
--build-arg WP_VERSION=${{ matrix.wordpress }} \ | ||
--build-arg USE_XDEBUG=${{ matrix.use_xdebug }} \ | ||
testing | ||
- name: Run Tests w/ Docker. | ||
run: | | ||
docker-compose run --rm \ | ||
-e COVERAGE=${{ matrix.coverage }} \ | ||
-e DEBUG=${{ matrix.debug }} \ | ||
testing --scale app=0 | ||
- name: Push Codecoverage to Coveralls.io | ||
if: matrix.coverage == 1 | ||
env: | ||
COVERALLS_RUN_LOCALLY: 1 | ||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | ||
run: | | ||
wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.1.0/php-coveralls.phar | ||
chmod +x php-coveralls.phar | ||
php php-coveralls.phar -v |
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,47 @@ | ||
name: WordPress Coding Standards | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
- master | ||
pull_request: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
|
||
- name: Setup PHP | ||
if: matrix.phpcs == 1 | ||
uses: shivammathur/setup-php@v1 | ||
with: | ||
php-version: 7.3 | ||
extensions: mbstring, intl | ||
tools: composer | ||
|
||
- name: Get Composer Cache Directory | ||
id: composer-cache | ||
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
|
||
- name: Install dependencies | ||
run: | | ||
composer require \ | ||
squizlabs/php_codesniffer \ | ||
phpcompatibility/phpcompatibility-wp wp-coding-standards/wpcs \ | ||
dealerdirect/phpcodesniffer-composer-installer | ||
composer install --no-dev | ||
- name: Cache dependencies | ||
uses: actions/cache@v1 | ||
with: | ||
path: ${{ steps.composer-cache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: ${{ runner.os }}-composer | ||
|
||
- name: Run PHP CodeSniffer | ||
run: vendor/bin/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
This file was deleted.
Oops, something went wrong.
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
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.