Fix notice change time #539
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
name: CI - PHPUnit | |
on: | |
push: | |
branches: [ develop ] | |
pull_request: | |
branches: [ master, develop ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: PHPUnit tests on PHP ${{ matrix.php-version }} | |
strategy: | |
matrix: | |
php-version: [ '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2' ] | |
container: | |
image: junaidbhura/wp-tests:php-${{ matrix.php-version }} | |
services: | |
mysql: | |
image: mysql:5.7 | |
env: | |
MYSQL_ROOT_PASSWORD: password | |
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Remove composer.lock | |
run: rm composer.lock | |
- name: Validate composer.json | |
run: composer validate | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-progress | |
- name: Install WordPress | |
run: bash bin/install-wp-tests.sh wordpress_test root 'password' mysql | |
- name: Run test suite | |
run: composer tests |