From 4a17f36ab49171809b8fbf56fee5eda01d38676b Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 9 Jun 2021 10:15:18 +0200 Subject: [PATCH 1/2] php: Test also on PHP 8 --- .github/workflows/php.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index c90c7fa..ee627cd 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -17,7 +17,7 @@ jobs: strategy: fail-fast: false matrix: - php: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4'] + php: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0'] os: ['ubuntu-latest'] include: - php: '5.6' @@ -51,18 +51,20 @@ jobs: runs-on: ${{ matrix.os }} env: - phpunit-version: 7.5.20 + phpunit-version: 9.5.4 strategy: fail-fast: false matrix: - php: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4'] + php: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0'] os: ['ubuntu-latest'] include: - - php: '5.6' - phpunit-version: 5.7.27 - php: '7.0' phpunit-version: 6.5.14 + - php: '7.1' + phpunit-version: 7.5.20 + - php: '7.2' + phpunit-version: 8.5.15 steps: - name: Checkout code base From a975db209b88a8591f8d44882b662209e5925bac Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 9 Jun 2021 10:15:30 +0200 Subject: [PATCH 2/2] php: Use `shivammathur/setup-php@v2` --- .github/workflows/php.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index ee627cd..6080352 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -30,7 +30,7 @@ jobs: uses: actions/checkout@v2 - name: Setup PHP - uses: shivammathur/setup-php@v1 + uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} tools: phpcs @@ -71,7 +71,7 @@ jobs: uses: actions/checkout@v2 - name: Setup PHP - uses: shivammathur/setup-php@v1 + uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} tools: phpunit:${{ matrix.phpunit-version || env.phpunit-version }}