From d2b25597c89ec094b69fed3e70cb5ea874097440 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Mon, 17 Apr 2023 21:57:28 +0100 Subject: [PATCH 1/2] Test on PHP 8.1 and 8.2 --- .github/workflows/tests.yml | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5c3f5b3..970b12e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,11 +10,11 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php: ['7.1', '7.2', '7.3', '7.4', '8.0'] + php: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2'] steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -23,16 +23,6 @@ jobs: tools: composer:v2 coverage: none - - name: Install PHP 7 dependencies - run: composer update --prefer-dist --no-interaction --no-progress - if: "matrix.php != '8.0'" - - - name: Install PHP 8 dependencies - run: | - composer require "phpunit/phpunit:^9.3@dev" "phpunit/php-code-coverage:^9.0@dev" "sebastian/global-state:^5.0@dev" "phpdocumentor/reflection-docblock:^5.2@dev" --no-interaction --no-update - composer update --prefer-dist --no-interaction --no-progress --ignore-platform-req=php - if: "matrix.php == '8.0'" - - name: Execute tests run: composer test @@ -45,7 +35,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -68,7 +58,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup PHP uses: shivammathur/setup-php@v2 From 800fcdb7667392ef745b0a883eda801500a01269 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Mon, 17 Apr 2023 21:59:36 +0100 Subject: [PATCH 2/2] Update tests.yml --- .github/workflows/tests.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 970b12e..c4f7de5 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -23,6 +23,9 @@ jobs: tools: composer:v2 coverage: none + - name: Install dependencies + run: composer update --prefer-dist --no-interaction --no-progress + - name: Execute tests run: composer test