From 4b47d3c3e33655dd6986476252f0c6d21be675c3 Mon Sep 17 00:00:00 2001 From: Sergey Kudashev Date: Sun, 26 Nov 2023 14:27:34 +0300 Subject: [PATCH 01/12] Update unit-tests.yml remove quotes from name --- .github/workflows/unit-tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 8470ed8..8e6167f 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -1,4 +1,4 @@ -name: "PHPUnit tests" +name: PHPUnit tests on: pull_request: @@ -6,7 +6,7 @@ on: jobs: phpunit: - name: "PHPUnit tests" + name: PHPUnit tests runs-on: ${{ matrix.operating-system }} From 9840d5e285b0ee72c2cf4f82e093ea3c5e65262d Mon Sep 17 00:00:00 2001 From: Sergey Kudashev Date: Sun, 26 Nov 2023 14:29:53 +0300 Subject: [PATCH 02/12] Update unit-tests.yml remove quotes from steps --- .github/workflows/unit-tests.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 8e6167f..ceacffe 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -23,30 +23,30 @@ jobs: - "ubuntu-latest" steps: - - name: "Checkout" - uses: "actions/checkout@v2" + - name: Checkout + uses: actions/checkout@v2 with: fetch-depth: 0 - - name: "Install PHP" - uses: "shivammathur/setup-php@v2" + - name: Install PHP + uses: shivammathur/setup-php@v2 with: - coverage: "pcov" - php-version: "${{ matrix.php-version }}" + coverage: pcov + php-version: ${{ matrix.php-version }} ini-values: memory_limit=-1 tools: composer:v2, cs2pr - - name: "Cache dependencies" - uses: "actions/cache@v2" + - name: Cache dependencies + uses: actions/cache@v2 with: path: | ~/.composer/cache vendor - key: "php-${{ matrix.php-version }}" - restore-keys: "php-${{ matrix.php-version }}" + key: php-${{ matrix.php-version }} + restore-keys: php-${{ matrix.php-version }} - - name: "Install highest dependencies" - run: "composer update --no-interaction --no-progress --no-suggest" + - name: Install highest dependencies + run: composer update --no-interaction --no-progress --no-suggest - - name: "Tests" - run: "vendor/bin/phpunit" + - name: Tests + run: vendor/bin/phpunit From 93bece61b915bce364cac30a61660b24721e8752 Mon Sep 17 00:00:00 2001 From: Sergey Kudashev Date: Sun, 26 Nov 2023 14:30:47 +0300 Subject: [PATCH 03/12] Update unit-tests.yml inline versions --- .github/workflows/unit-tests.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index ceacffe..84385d8 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -12,15 +12,8 @@ jobs: strategy: matrix: - php-version: - - "7.2" - - "7.3" - - "7.4" - - "8.0" - - "8.1" - - "8.2" - operating-system: - - "ubuntu-latest" + operating-system: [ubuntu-latest] + php-version: [7.2, 7.3, 7.4, 8.0, 8.1, 8.2] steps: - name: Checkout From a5709206566a26d8c702b121834be451e4609a2e Mon Sep 17 00:00:00 2001 From: Sergey Kudashev Date: Sun, 26 Nov 2023 14:32:06 +0300 Subject: [PATCH 04/12] Update unit-tests.yml add a fail-fast strategy --- .github/workflows/unit-tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 84385d8..19b82f0 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -11,6 +11,7 @@ jobs: runs-on: ${{ matrix.operating-system }} strategy: + fail-fast: false matrix: operating-system: [ubuntu-latest] php-version: [7.2, 7.3, 7.4, 8.0, 8.1, 8.2] From f27f0f9179bcc8092d294aa70916122d855f547e Mon Sep 17 00:00:00 2001 From: Sergey Kudashev Date: Sun, 26 Nov 2023 14:33:18 +0300 Subject: [PATCH 05/12] Update unit-tests.yml change global name --- .github/workflows/unit-tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 19b82f0..d64a43d 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -1,11 +1,11 @@ -name: PHPUnit tests +name: Tests on: pull_request: push: jobs: - phpunit: + tests: name: PHPUnit tests runs-on: ${{ matrix.operating-system }} From 1d70598edf072ba19b49245331d5e8157470b39f Mon Sep 17 00:00:00 2001 From: Sergey Kudashev Date: Sun, 26 Nov 2023 14:36:16 +0300 Subject: [PATCH 06/12] Update unit-tests.yml change a jobs name --- .github/workflows/unit-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index d64a43d..39f2109 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -6,7 +6,7 @@ on: jobs: tests: - name: PHPUnit tests + name: Tests PHP ${{ matrix.php }} runs-on: ${{ matrix.operating-system }} From f7a98b2c0f15f5392bf32c68cde81b5d5d13095d Mon Sep 17 00:00:00 2001 From: Sergey Kudashev Date: Sun, 26 Nov 2023 14:37:13 +0300 Subject: [PATCH 07/12] Style unit-tests.yml remove redundant indentations --- .github/workflows/unit-tests.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 39f2109..14f0409 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -7,9 +7,7 @@ on: jobs: tests: name: Tests PHP ${{ matrix.php }} - runs-on: ${{ matrix.operating-system }} - strategy: fail-fast: false matrix: From 06fc789201fd74ebcb52416e84c1e9f7731612fc Mon Sep 17 00:00:00 2001 From: Sergey Kudashev Date: Sun, 26 Nov 2023 14:38:33 +0300 Subject: [PATCH 08/12] Update unit-tests.yml bump the checkout action --- .github/workflows/unit-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 14f0409..cdb51a2 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 From acfd4ef77e763f68b83241fa33097d370c6383cc Mon Sep 17 00:00:00 2001 From: Sergey Kudashev Date: Sun, 26 Nov 2023 14:39:08 +0300 Subject: [PATCH 09/12] Update unit-tests.yml bump the cache action --- .github/workflows/unit-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index cdb51a2..2966914 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -29,7 +29,7 @@ jobs: tools: composer:v2, cs2pr - name: Cache dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: | ~/.composer/cache From 899c0fd478471d5b9a090174e8302c291b0a84f2 Mon Sep 17 00:00:00 2001 From: Sergey Kudashev Date: Sun, 26 Nov 2023 14:42:17 +0300 Subject: [PATCH 10/12] Update unit-tests.yml rename the operating-system variable --- .github/workflows/unit-tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 2966914..e6341d3 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -7,11 +7,11 @@ on: jobs: tests: name: Tests PHP ${{ matrix.php }} - runs-on: ${{ matrix.operating-system }} + runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - operating-system: [ubuntu-latest] + os: [ubuntu-latest] php-version: [7.2, 7.3, 7.4, 8.0, 8.1, 8.2] steps: From c74fb084f67a260f1d743dffae69b17113c2ee9e Mon Sep 17 00:00:00 2001 From: Sergey Kudashev Date: Sun, 26 Nov 2023 14:43:43 +0300 Subject: [PATCH 11/12] Update unit-tests.yml rename the php-version variable --- .github/workflows/unit-tests.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index e6341d3..ba9a25f 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -12,7 +12,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - php-version: [7.2, 7.3, 7.4, 8.0, 8.1, 8.2] + php: [7.2, 7.3, 7.4, 8.0, 8.1, 8.2] steps: - name: Checkout @@ -24,7 +24,7 @@ jobs: uses: shivammathur/setup-php@v2 with: coverage: pcov - php-version: ${{ matrix.php-version }} + php-version: ${{ matrix.php }} ini-values: memory_limit=-1 tools: composer:v2, cs2pr @@ -34,8 +34,8 @@ jobs: path: | ~/.composer/cache vendor - key: php-${{ matrix.php-version }} - restore-keys: php-${{ matrix.php-version }} + key: php-${{ matrix.php }} + restore-keys: php-${{ matrix.php }} - name: Install highest dependencies run: composer update --no-interaction --no-progress --no-suggest From 9335505103ba20b607c6e27954eb16182bd2d094 Mon Sep 17 00:00:00 2001 From: Sergey Kudashev Date: Sun, 26 Nov 2023 14:44:27 +0300 Subject: [PATCH 12/12] Update unit-tests.yml add support of the PHP 8.3 version --- .github/workflows/unit-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index ba9a25f..5074ba1 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -12,7 +12,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - php: [7.2, 7.3, 7.4, 8.0, 8.1, 8.2] + php: [7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3] steps: - name: Checkout