Skip to content

Commit

Permalink
polyfills in composer
Browse files Browse the repository at this point in the history
  • Loading branch information
torounit committed Sep 28, 2021
1 parent 6ce7998 commit 48c5a6d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2,542 deletions.
24 changes: 6 additions & 18 deletions .github/workflows/push-test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,26 +45,14 @@ jobs:
- name: Check PHP Version
run: php -v

- name: Install phpunit global
if: ${{ matrix.php < 8.0 }}
run: |
composer global require "phpunit/phpunit=5.7.*|6.*.*|7.*.*"
phpunit --version
- name: Install phpunit global for 8
if: ${{ matrix.php >= 8.0 }}
run: |
composer global require "phpunit/phpunit"
phpunit --version
- name: Cache composer packages
uses: actions/cache@v2
with:
path: vendor
key: composer-${{ hashFiles('composer.lock') }}
key: composer-${{ hashFiles('composer.json') }}

- name: Composer install
run: composer install --optimize-autoloader --prefer-dist
run: composer install

- name: Install WP Tests
run: bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1 ${{ matrix.wp }} true
Expand All @@ -75,8 +63,8 @@ jobs:
- name: phpunit tests
run: |
phpunit
WP_MULTISITE=1 phpunit
composer test
WP_MULTISITE=1 composer test
lint:
runs-on: ubuntu-latest
Expand All @@ -98,10 +86,10 @@ jobs:
uses: actions/cache@v2
with:
path: vendor
key: composer-${{ hashFiles('composer.lock') }}
key: composer-${{ hashFiles('composer.json') }}

- name: Composer install
run: composer install --optimize-autoloader --prefer-dist
run: composer install

- name: phpcs tests
run: composer phpcs
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
],
"format": [
"@php vendor/bin/phpcbf --standard=./.phpcs.xml.dist --report-summary --report-source"
]
],
"test": "@php ./vendor/phpunit/phpunit/phpunit"
}
}
Loading

0 comments on commit 48c5a6d

Please sign in to comment.