From 5e1fca44bb2ad4827d54960cfa5239c42221b22c Mon Sep 17 00:00:00 2001
From: lotyp <lotyp7@gmail.com>
Date: Fri, 24 May 2024 11:01:43 +0300
Subject: [PATCH 1/9] ci: refactor workflows

---
 ...ild-release.yml => build-phar-release.yml} |  27 ++-
 .github/workflows/coding-standards.yml        | 196 ++++++++++++++++++
 .../workflows/github-releases-to-discord.yml  |  23 --
 .github/workflows/lint-php-files.yml          |  90 --------
 psalm-baseline.xml                            |   5 +-
 5 files changed, 220 insertions(+), 121 deletions(-)
 rename .github/workflows/{build-release.yml => build-phar-release.yml} (84%)
 create mode 100644 .github/workflows/coding-standards.yml
 delete mode 100644 .github/workflows/github-releases-to-discord.yml
 delete mode 100644 .github/workflows/lint-php-files.yml

diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-phar-release.yml
similarity index 84%
rename from .github/workflows/build-release.yml
rename to .github/workflows/build-phar-release.yml
index 06c6b089..5afb93f4 100644
--- a/.github/workflows/build-release.yml
+++ b/.github/workflows/build-phar-release.yml
@@ -1,14 +1,14 @@
 ---
 
 on:  # yamllint disable-line rule:truthy
-  push:
-    tags:
-      - '*.*.*'
+  release:
+    types:
+      - published
 
 name: ๐Ÿ“ฆ Build PHAR release
 
 jobs:
-  release:
+  build-release:
     runs-on: ubuntu-latest
     timeout-minutes: 4
     strategy:
@@ -122,3 +122,22 @@ jobs:
                 core.setFailed(error.message);
               }
             }
+
+  notify-discord:
+    runs-on: ubuntu-latest
+    timeout-minutes: 4
+    steps:
+      - name: ๐Ÿ“ฆ Check out the codebase
+        uses: actions/checkout@v4.1.5
+
+      - name: โœ‰๏ธ Notify Discord about release
+        uses: SethCohen/github-releases-to-discord@v1.15.0
+        with:
+          webhook_url: ${{ secrets.DISCORD_WEBHOOK_URL }}
+          color: '2105893'
+          username: 'Buggregator Trap release'
+          avatar_url: 'https://cdn.discordapp.com/avatars/487431320314576937/bd64361e4ba6313d561d54e78c9e7171.png'
+          content: '||@here||'
+          footer_title: 'Changelog'
+          footer_icon_url: 'https://cdn.discordapp.com/avatars/487431320314576937/bd64361e4ba6313d561d54e78c9e7171.png'
+          footer_timestamp: true
diff --git a/.github/workflows/coding-standards.yml b/.github/workflows/coding-standards.yml
new file mode 100644
index 00000000..a1ac6719
--- /dev/null
+++ b/.github/workflows/coding-standards.yml
@@ -0,0 +1,196 @@
+---
+
+on:  # yamllint disable-line rule:truthy
+  pull_request:
+    branches:
+      - master
+  push:
+    branches:
+      - master
+
+name: ๐Ÿงน Fix PHP coding standards
+
+jobs:
+  commit-linting:
+    timeout-minutes: 4
+    runs-on: ubuntu-latest
+    permissions:
+      contents: read
+      pull-requests: read
+    steps:
+      - name: ๐Ÿ“ฆ Check out the codebase
+        uses: actions/checkout@v4.1.6
+
+      - name: ๐Ÿง Lint commits using "commitlint"
+        uses: wagoid/commitlint-github-action@v6.0.1
+        with:
+          configFile: ${{ github.workspace }}/.github/.commitlint.config.mjs
+          failOnWarnings: false
+          failOnErrors: false
+          helpURL: 'https://github.com/conventional-changelog/commitlint/#what-is-commitlint'
+
+  yaml-linting:
+    timeout-minutes: 4
+    runs-on: ubuntu-latest
+    permissions:
+      contents: read
+      pull-requests: read
+    steps:
+      - name: ๐Ÿ“ฆ Check out the codebase
+        uses: actions/checkout@v4.1.6
+
+      - name: ๐Ÿง Lint YAML files
+        uses: ibiqlik/action-yamllint@v3.1.1
+        with:
+          config_file: .yamllint.yaml
+          file_or_dir: '.'
+          strict: true
+
+  markdown-linting:
+    timeout-minutes: 4
+    runs-on: ubuntu-latest
+    concurrency:
+      cancel-in-progress: true
+      group: markdown-linting-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+    steps:
+      - name: ๐Ÿ“ฆ Check out the codebase
+        uses: actions/checkout@v4.1.6
+
+      - name: ๐Ÿง Lint Markdown files
+        uses: DavidAnson/markdownlint-cli2-action@v16.0.0
+        with:
+          globs: |
+            **/*.md
+            !CHANGELOG.md
+
+  composer-linting:
+    timeout-minutes: 4
+    runs-on: ${{ matrix.os }}
+    concurrency:
+      cancel-in-progress: true
+      group: composer-linting-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+    strategy:
+      matrix:
+        os:
+          - ubuntu-latest
+        php-version:
+          - '8.1'
+        dependencies:
+          - locked
+    permissions:
+      contents: write
+    steps:
+      - name: ๐Ÿ› ๏ธ Setup PHP
+        uses: shivammathur/setup-php@2.30.4
+        with:
+          php-version: ${{ matrix.php-version }}
+          extensions: none, ctype, dom, json, mbstring, phar, simplexml, tokenizer, xml, xmlwriter, phar
+          ini-values: error_reporting=E_ALL
+          coverage: none
+          tools: phive
+
+      - name: ๐Ÿ“ฆ Check out the codebase
+        uses: actions/checkout@v4.1.6
+
+      - name: ๐Ÿ› ๏ธ Setup problem matchers
+        run: |
+          echo "::add-matcher::${{ runner.tool_cache }}/php.json"
+
+      - name: ๐Ÿค– Validate composer.json and composer.lock
+        run: composer validate --ansi --strict
+
+      - name: ๐Ÿ” Get composer cache directory
+        uses: wayofdev/gh-actions/actions/composer/get-cache-directory@v3.1.0
+
+      - name: โ™ป๏ธ Restore cached dependencies installed with composer
+        uses: actions/cache@v4.0.2
+        with:
+          path: ${{ env.COMPOSER_CACHE_DIR }}
+          key: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}
+          restore-keys: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-
+
+      - name: ๐Ÿ“ฅ Install "${{ matrix.dependencies }}" dependencies with composer
+        uses: wayofdev/gh-actions/actions/composer/install@v3.1.0
+        with:
+          dependencies: ${{ matrix.dependencies }}
+
+      - name: ๐Ÿ“ฅ Install dependencies with phive
+        uses: wayofdev/gh-actions/actions/phive/install@v3.1.0
+        with:
+          phive-home: '.phive'
+          trust-gpg-keys: 0xC00543248C87FB13,0x033E5F8D801A2F8D
+
+      - name: ๐Ÿ” Run ergebnis/composer-normalize
+        run: .phive/composer-normalize --ansi --dry-run
+
+  coding-standards:
+    timeout-minutes: 4
+    runs-on: ${{ matrix.os }}
+    concurrency:
+      cancel-in-progress: true
+      group: coding-standards-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+    strategy:
+      matrix:
+        os:
+          - ubuntu-latest
+        php-version:
+          - '8.1'
+        dependencies:
+          - locked
+    permissions:
+      contents: write
+    steps:
+      - name: โš™๏ธ Set git to use LF line endings
+        run: |
+          git config --global core.autocrlf false
+          git config --global core.eol lf
+
+      - name: ๐Ÿ› ๏ธ Setup PHP
+        uses: shivammathur/setup-php@2.30.4
+        with:
+          php-version: ${{ matrix.php-version }}
+          extensions: none, ctype, dom, json, mbstring, phar, simplexml, tokenizer, xml, xmlwriter, sockets
+          ini-values: error_reporting=E_ALL
+          coverage: none
+
+      - name: ๐Ÿ“ฆ Check out the codebase
+        uses: actions/checkout@v4.1.6
+
+      - name: ๐Ÿ› ๏ธ Setup problem matchers
+        run: |
+          echo "::add-matcher::${{ runner.tool_cache }}/php.json"
+
+      - name: ๐Ÿค– Validate composer.json and composer.lock
+        run: composer validate --ansi --strict
+
+      - name: ๐Ÿ” Get composer cache directory
+        uses: wayofdev/gh-actions/actions/composer/get-cache-directory@v3.1.0
+
+      - name: โ™ป๏ธ Restore cached dependencies installed with composer
+        uses: actions/cache@v4.0.2
+        with:
+          path: ${{ env.COMPOSER_CACHE_DIR }}
+          key: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}
+          restore-keys: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-
+
+      - name: ๐Ÿ“ฅ Install "${{ matrix.dependencies }}" dependencies with composer
+        uses: wayofdev/gh-actions/actions/composer/install@v3.1.0
+        with:
+          dependencies: ${{ matrix.dependencies }}
+
+      - name: ๐Ÿ› ๏ธ Prepare environment
+        run: make prepare
+
+      - name: ๐Ÿšจ Run coding standards task
+        run: composer cs:fix
+        env:
+          PHP_CS_FIXER_IGNORE_ENV: true
+
+      - name: ๐Ÿ“ค Commit and push changed files back to GitHub
+        uses: stefanzweifel/git-auto-commit-action@v5.0.1
+        with:
+          commit_message: 'style(php-cs-fixer): lint php files and fix coding standards'
+          branch: ${{ github.head_ref }}
+          commit_author: 'github-actions <github-actions@users.noreply.github.com>'
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.github/workflows/github-releases-to-discord.yml b/.github/workflows/github-releases-to-discord.yml
deleted file mode 100644
index 178cc10b..00000000
--- a/.github/workflows/github-releases-to-discord.yml
+++ /dev/null
@@ -1,23 +0,0 @@
----
-
-on:  # yamllint disable-line rule:truthy
-  release:
-    types: [published]
-
-jobs:
-  github-releases-to-discord:
-    runs-on: ubuntu-latest
-    steps:
-      - name: Checkout
-        uses: actions/checkout@v3
-      - name: Github Releases To Discord
-        uses: SethCohen/github-releases-to-discord@v1.13.1
-        with:
-          webhook_url: ${{ secrets.DISCORD_WEBHOOK_URL }}
-          color: "2105893"
-          username: "Buggregator Trap release"
-          avatar_url: "https://cdn.discordapp.com/avatars/487431320314576937/bd64361e4ba6313d561d54e78c9e7171.png"
-          content: "||@here||"
-          footer_title: "Changelog"
-          footer_icon_url: "https://cdn.discordapp.com/avatars/487431320314576937/bd64361e4ba6313d561d54e78c9e7171.png"
-          footer_timestamp: true
diff --git a/.github/workflows/lint-php-files.yml b/.github/workflows/lint-php-files.yml
deleted file mode 100644
index 5f45d0af..00000000
--- a/.github/workflows/lint-php-files.yml
+++ /dev/null
@@ -1,90 +0,0 @@
----
-
-on:  # yamllint disable-line rule:truthy
-  pull_request:
-    paths:
-      - 'src/**'
-      - 'tests/**'
-      - 'bin/trap'
-      - '.php-cs-fixer.dist.php'
-  push:
-    paths:
-      - 'src/**'
-      - 'tests/**'
-      - 'bin/trap'
-      - '.php-cs-fixer.dist.php'
-
-name: ๐Ÿงน Fix PHP coding standards
-
-jobs:
-  coding-standards:
-    timeout-minutes: 4
-    runs-on: ${{ matrix.os }}
-    concurrency:
-      cancel-in-progress: true
-      group: coding-standards-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
-    strategy:
-      matrix:
-        os:
-          - ubuntu-latest
-        php-version:
-          - '8.2'
-        dependencies:
-          - locked
-    permissions:
-      contents: write
-    steps:
-      - name: โš™๏ธ Set git to use LF line endings
-        run: |
-          git config --global core.autocrlf false
-          git config --global core.eol lf
-
-      - name: ๐Ÿ› ๏ธ Setup PHP
-        uses: shivammathur/setup-php@2.30.4
-        with:
-          php-version: ${{ matrix.php-version }}
-          extensions: none, ctype, dom, json, mbstring, phar, simplexml, tokenizer, xml, xmlwriter, sockets
-          ini-values: error_reporting=E_ALL
-          coverage: none
-
-      - name: ๐Ÿ“ฆ Check out the codebase
-        uses: actions/checkout@v4.1.5
-
-      - name: ๐Ÿ› ๏ธ Setup problem matchers
-        run: |
-          echo "::add-matcher::${{ runner.tool_cache }}/php.json"
-
-      - name: ๐Ÿค– Validate composer.json and composer.lock
-        run: composer validate --ansi --strict
-
-      - name: ๐Ÿ” Get composer cache directory
-        uses: wayofdev/gh-actions/actions/composer/get-cache-directory@v3.1.0
-
-      - name: โ™ป๏ธ Restore cached dependencies installed with composer
-        uses: actions/cache@v4.0.2
-        with:
-          path: ${{ env.COMPOSER_CACHE_DIR }}
-          key: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}
-          restore-keys: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-
-
-      - name: ๐Ÿ“ฅ Install "${{ matrix.dependencies }}" dependencies with composer
-        uses: wayofdev/gh-actions/actions/composer/install@v3.1.0
-        with:
-          dependencies: ${{ matrix.dependencies }}
-
-      - name: ๐Ÿ› ๏ธ Prepare environment
-        run: make prepare
-
-      - name: ๐Ÿšจ Run coding standards task
-        run: composer cs:fix
-        env:
-          PHP_CS_FIXER_IGNORE_ENV: true
-
-      - name: ๐Ÿ“ค Commit and push changed files back to GitHub
-        uses: stefanzweifel/git-auto-commit-action@v5.0.1
-        with:
-          commit_message: 'style(php-cs-fixer): lint php files and fix coding standards'
-          branch: ${{ github.head_ref }}
-          commit_author: 'github-actions <github-actions@users.noreply.github.com>'
-        env:
-          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/psalm-baseline.xml b/psalm-baseline.xml
index d6240690..5e64aac1 100644
--- a/psalm-baseline.xml
+++ b/psalm-baseline.xml
@@ -136,9 +136,6 @@
     </PossiblyNullArgument>
   </file>
   <file src="src/Sender/Console/Renderer/Sentry/Header.php">
-    <MissingReturnType>
-      <code><![CDATA[renderMessageHeader]]></code>
-    </MissingReturnType>
     <MixedArgumentTypeCoercion>
       <code><![CDATA[$message]]></code>
       <code><![CDATA[$tags]]></code>
@@ -199,7 +196,7 @@
   </file>
   <file src="src/Sender/SocketSender.php">
     <MixedPropertyTypeCoercion>
-      <code><![CDATA[new SplQueue()]]></code>
+      <code><![CDATA[new \SplQueue()]]></code>
     </MixedPropertyTypeCoercion>
   </file>
   <file src="src/Socket/SocketStream.php">

From 6458b37b4386eabc9399c07d582f5b72244b050c Mon Sep 17 00:00:00 2001
From: lotyp <lotyp7@gmail.com>
Date: Fri, 24 May 2024 11:10:13 +0300
Subject: [PATCH 2/9] ci: add missing sockets ext

---
 .github/workflows/coding-standards.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/coding-standards.yml b/.github/workflows/coding-standards.yml
index a1ac6719..377d79a5 100644
--- a/.github/workflows/coding-standards.yml
+++ b/.github/workflows/coding-standards.yml
@@ -84,7 +84,7 @@ jobs:
         uses: shivammathur/setup-php@2.30.4
         with:
           php-version: ${{ matrix.php-version }}
-          extensions: none, ctype, dom, json, mbstring, phar, simplexml, tokenizer, xml, xmlwriter, phar
+          extensions: none, ctype, dom, json, mbstring, phar, simplexml, tokenizer, xml, xmlwriter, phar, sockets
           ini-values: error_reporting=E_ALL
           coverage: none
           tools: phive

From 25f96703f123780e3098e03ab356fd668e5f2bea Mon Sep 17 00:00:00 2001
From: lotyp <lotyp7@gmail.com>
Date: Fri, 24 May 2024 11:12:05 +0300
Subject: [PATCH 3/9] ci: add missing gpg key

---
 .github/workflows/coding-standards.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/coding-standards.yml b/.github/workflows/coding-standards.yml
index 377d79a5..7f734bd2 100644
--- a/.github/workflows/coding-standards.yml
+++ b/.github/workflows/coding-standards.yml
@@ -118,7 +118,7 @@ jobs:
         uses: wayofdev/gh-actions/actions/phive/install@v3.1.0
         with:
           phive-home: '.phive'
-          trust-gpg-keys: 0xC00543248C87FB13,0x033E5F8D801A2F8D
+          trust-gpg-keys: '0xC00543248C87FB13,0x033E5F8D801A2F8D,0x2DF45277AEF09A2F'
 
       - name: ๐Ÿ” Run ergebnis/composer-normalize
         run: .phive/composer-normalize --ansi --dry-run

From 0dfb22c1a7287cbdc58538e5aa26a6b20f192141 Mon Sep 17 00:00:00 2001
From: lotyp <lotyp7@gmail.com>
Date: Fri, 24 May 2024 11:26:32 +0300
Subject: [PATCH 4/9] ci: add auto labeling

---
 .github/labeler.yml                | 20 ++++++++++++++++++++
 .github/workflows/apply-labels.yml | 23 +++++++++++++++++++++++
 2 files changed, 43 insertions(+)
 create mode 100644 .github/labeler.yml
 create mode 100644 .github/workflows/apply-labels.yml

diff --git a/.github/labeler.yml b/.github/labeler.yml
new file mode 100644
index 00000000..e5d40386
--- /dev/null
+++ b/.github/labeler.yml
@@ -0,0 +1,20 @@
+---
+
+# this file is for the labeler workflow job
+# Documentation https://github.com/marketplace/actions/labeler
+
+"type: bug":
+  - head-branch: ['^bug', '^fix', 'bug', 'fix']
+
+"type: enhancement":
+  - head-branch: ['^feature', '^feat', 'feature']
+
+"type: documentation":
+  - changed-files:
+      - any-glob-to-any-file: ['assets/**/*', '.github/*', './*.md']
+
+"type: maintenance":
+  - changed-files:
+      - any-glob-to-any-file: ['tests/**/*', '.github/workflows/*']
+
+...
diff --git a/.github/workflows/apply-labels.yml b/.github/workflows/apply-labels.yml
new file mode 100644
index 00000000..f2b6f59b
--- /dev/null
+++ b/.github/workflows/apply-labels.yml
@@ -0,0 +1,23 @@
+---
+
+# This workflow will triage pull requests and apply a label based on the
+# paths that are modified in the pull request.
+#
+# To use this workflow, you will need to set up a .github/labeler.yml
+# file with configuration. For more information, see:
+# https://github.com/actions/labeler/blob/master/README.md
+
+on:  # yamllint disable-line rule:truthy
+  pull_request:
+
+name: ๐Ÿท๏ธ Add labels
+
+jobs:
+  label:
+    uses: wayofdev/gh-actions/.github/workflows/apply-labels.yml@v3.1.0
+    with:
+      os: ubuntu-latest
+    secrets:
+      token: ${{ secrets.GITHUB_TOKEN }}
+
+...

From 55a12e511d6e1290a5cbc55e24a77b29a23525c4 Mon Sep 17 00:00:00 2001
From: lotyp <lotyp7@gmail.com>
Date: Fri, 24 May 2024 11:27:05 +0300
Subject: [PATCH 5/9] ci: add job to compile PHAR in integration mode

---
 .github/workflows/testing.yml | 68 +++++++++++++++++++++++++++++++++++
 1 file changed, 68 insertions(+)

diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml
index 1dc42ae2..93d22cef 100644
--- a/.github/workflows/testing.yml
+++ b/.github/workflows/testing.yml
@@ -134,3 +134,71 @@ jobs:
 
       - name: ๐Ÿงช Run tests that require separate process using phpunit/phpunit
         run: composer test:sep
+
+  compile-phar:
+    timeout-minutes: 4
+    runs-on: ${{ matrix.os }}
+    concurrency:
+      cancel-in-progress: true
+      group: testing-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ matrix.php-version }}-${{ matrix.dependencies }}
+    strategy:
+      fail-fast: true
+      matrix:
+        os:
+          - ubuntu-latest
+        php-version:
+          - '8.2'
+        dependencies:
+          - locked
+    env:
+      TRAP_PHAR: ".build/phar/trap.phar"
+      TRAP_PHAR_SIGNATURE: ".build/phar/trap.phar.asc"
+    steps:
+      - name: ๐Ÿ“ฆ Check out the codebase
+        uses: actions/checkout@v4.1.5
+
+      - name: ๐Ÿ› ๏ธ Setup PHP
+        uses: shivammathur/setup-php@2.30.4
+        with:
+          php-version: ${{ matrix.php-version }}
+          extensions: none, ctype, dom, json, mbstring, phar, simplexml, tokenizer, xml, xmlwriter, sockets
+          ini-values: 'error_reporting=E_ALL, memory_limit=-1, phar.readonly=0'
+          coverage: none
+          tools: phive
+
+      - name: ๐Ÿ› ๏ธ Setup problem matchers
+        run: |
+          echo "::add-matcher::${{ runner.tool_cache }}/php.json"
+
+      - name: ๐Ÿ” Get composer cache directory
+        uses: wayofdev/gh-actions/actions/composer/get-cache-directory@v3.1.0
+
+      - name: โ™ป๏ธ Restore cached dependencies installed with composer
+        uses: actions/cache@v4.0.2
+        with:
+          path: ${{ env.COMPOSER_CACHE_DIR }}
+          key: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}
+          restore-keys: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-
+
+      - name: ๐Ÿ“ฅ Install "${{ matrix.dependencies }}" dependencies with composer
+        uses: wayofdev/gh-actions/actions/composer/install@v3.1.0
+        with:
+          dependencies: ${{ matrix.dependencies }}
+
+      - name: ๐Ÿ“ฅ Install dependencies with phive
+        uses: wayofdev/gh-actions/actions/phive/install@v3.1.0
+        with:
+          phive-home: '.phive'
+          trust-gpg-keys: '0xC00543248C87FB13,0x033E5F8D801A2F8D,0x2DF45277AEF09A2F'
+
+      - name: ๐Ÿ” Validate configuration for box-project/box
+        run: .phive/box validate box.json.dist --ansi
+
+      - name: ๐Ÿค– Compile trap.phar with box-project/box
+        run: .phive/box compile --ansi
+
+      - name: ๐Ÿ’ฅ Show info about trap.phar with box-project/box
+        run: .phive/box info ${{ env.TRAP_PHAR }} --ansi
+
+      - name: ๐Ÿค” Run trap.phar help command
+        run: ${{ env.TRAP_PHAR }} --help

From 70358c13543890ddf039775c2671fa183f44dd9f Mon Sep 17 00:00:00 2001
From: lotyp <lotyp7@gmail.com>
Date: Fri, 24 May 2024 11:28:04 +0300
Subject: [PATCH 6/9] ci: fix job group

---
 .github/workflows/testing.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml
index 93d22cef..d42b8627 100644
--- a/.github/workflows/testing.yml
+++ b/.github/workflows/testing.yml
@@ -140,7 +140,7 @@ jobs:
     runs-on: ${{ matrix.os }}
     concurrency:
       cancel-in-progress: true
-      group: testing-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ matrix.php-version }}-${{ matrix.dependencies }}
+      group: compile-phar-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ matrix.php-version }}-${{ matrix.dependencies }}
     strategy:
       fail-fast: true
       matrix:

From f24420a43957412a164ecad3296b9c6daf6d68f3 Mon Sep 17 00:00:00 2001
From: lotyp <lotyp7@gmail.com>
Date: Fri, 24 May 2024 11:41:29 +0300
Subject: [PATCH 7/9] ci: compile-phar requires full git history

---
 .github/workflows/testing.yml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml
index d42b8627..0f9d82a5 100644
--- a/.github/workflows/testing.yml
+++ b/.github/workflows/testing.yml
@@ -156,6 +156,8 @@ jobs:
     steps:
       - name: ๐Ÿ“ฆ Check out the codebase
         uses: actions/checkout@v4.1.5
+        with:
+          fetch-depth: 0
 
       - name: ๐Ÿ› ๏ธ Setup PHP
         uses: shivammathur/setup-php@2.30.4

From 06db82f6f53a6831b3e0d9e9bf2f10c4a720358c Mon Sep 17 00:00:00 2001
From: Aleksei Gagarin <roxblnfk@ya.ru>
Date: Fri, 24 May 2024 15:25:45 +0400
Subject: [PATCH 8/9] ci: update .github/labeler.yml from review

---
 .github/labeler.yml | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/.github/labeler.yml b/.github/labeler.yml
index e5d40386..b0c95cfe 100644
--- a/.github/labeler.yml
+++ b/.github/labeler.yml
@@ -3,18 +3,22 @@
 # this file is for the labeler workflow job
 # Documentation https://github.com/marketplace/actions/labeler
 
-"type: bug":
+"bug":
   - head-branch: ['^bug', '^fix', 'bug', 'fix']
 
-"type: enhancement":
+"enhancement":
   - head-branch: ['^feature', '^feat', 'feature']
 
-"type: documentation":
+"documentation":
   - changed-files:
-      - any-glob-to-any-file: ['assets/**/*', '.github/*', './*.md']
+      - any-glob-to-any-file: ['.github/*.md', './*.md']
 
-"type: maintenance":
+"maintenance":
   - changed-files:
-      - any-glob-to-any-file: ['tests/**/*', '.github/workflows/*']
+      - any-glob-to-any-file: ['.github/**/*']
+
+"tests":
+  - changed-files:
+      - any-glob-to-any-file: ['tests/**/*']
 
 ...

From 471a3ba68c44839bb276d15ac7c98a4ce08a3159 Mon Sep 17 00:00:00 2001
From: Aleksei Gagarin <roxblnfk@ya.ru>
Date: Fri, 24 May 2024 15:28:44 +0400
Subject: [PATCH 9/9] ci: update .github/labeler.yml from review

---
 .github/labeler.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/labeler.yml b/.github/labeler.yml
index b0c95cfe..a11ab09d 100644
--- a/.github/labeler.yml
+++ b/.github/labeler.yml
@@ -19,6 +19,6 @@
 
 "tests":
   - changed-files:
-      - any-glob-to-any-file: ['tests/**/*']
+      - any-glob-to-any-file: ['tests/**/*', 'phpunit*', 'psalm*']
 
 ...