From c6701eb59b485a4feb616049d6f36ef0d239e0ca Mon Sep 17 00:00:00 2001 From: Jaapio Date: Fri, 24 Nov 2023 09:33:35 +0100 Subject: [PATCH 1/6] [CI] upgrade ci workflow to detect php versions --- .github/workflows/integrate.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/integrate.yaml b/.github/workflows/integrate.yaml index 5723870..7a4aa12 100644 --- a/.github/workflows/integrate.yaml +++ b/.github/workflows/integrate.yaml @@ -44,7 +44,6 @@ jobs: unit-tests: name: "Unit test" - uses: "phpDocumentor/.github/.github/workflows/continues-integration.yml@v0.4.0" + uses: "phpDocumentor/.github/.github/workflows/continuous-integration.yml@0.5.0" with: composer-root-version: "1.x-dev" - php-versions: "['7.4', '8.0', '8.1', '8.2']" From ff2efef99caded385093d655eadd80636ff53850 Mon Sep 17 00:00:00 2001 From: Jaapio Date: Fri, 24 Nov 2023 12:01:30 +0100 Subject: [PATCH 2/6] Fix code style --- src/Types/ContextFactory.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Types/ContextFactory.php b/src/Types/ContextFactory.php index 4909ab7..42ee5eb 100644 --- a/src/Types/ContextFactory.php +++ b/src/Types/ContextFactory.php @@ -45,6 +45,7 @@ use const T_NAMESPACE; use const T_NS_SEPARATOR; use const T_STRING; +use const T_TRAIT; use const T_USE; if (!defined('T_NAME_QUALIFIED')) { From d2fa18ad6617ef783b1a7869cc6e070f426b4731 Mon Sep 17 00:00:00 2001 From: Jaapio Date: Fri, 24 Nov 2023 12:04:34 +0100 Subject: [PATCH 3/6] [CI] add weekly run --- .github/workflows/integrate.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/integrate.yaml b/.github/workflows/integrate.yaml index 7a4aa12..2868aef 100644 --- a/.github/workflows/integrate.yaml +++ b/.github/workflows/integrate.yaml @@ -7,6 +7,8 @@ on: # yamllint disable-line rule:truthy branches: - "5.x" pull_request: null + schedule: + - cron: '0 14 * * 1' # Allow manually triggering the workflow. workflow_dispatch: null From bbee54d78b3f9523545bdbb2fd0e7fc96205c2ca Mon Sep 17 00:00:00 2001 From: Jaapio Date: Fri, 24 Nov 2023 12:09:11 +0100 Subject: [PATCH 4/6] [CI] run on 1.x branch --- .github/workflows/integrate.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/integrate.yaml b/.github/workflows/integrate.yaml index 2868aef..8f84eca 100644 --- a/.github/workflows/integrate.yaml +++ b/.github/workflows/integrate.yaml @@ -5,7 +5,7 @@ name: "Integrate" on: # yamllint disable-line rule:truthy push: branches: - - "5.x" + - "1.x" pull_request: null schedule: - cron: '0 14 * * 1' From f043e84e629fc2a7dc3782f7c15cb276d720fff9 Mon Sep 17 00:00:00 2001 From: Jaapio Date: Fri, 24 Nov 2023 12:10:32 +0100 Subject: [PATCH 5/6] [CI] correct version of workflow --- .github/workflows/integrate.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/integrate.yaml b/.github/workflows/integrate.yaml index 8f84eca..b51a3bf 100644 --- a/.github/workflows/integrate.yaml +++ b/.github/workflows/integrate.yaml @@ -46,6 +46,6 @@ jobs: unit-tests: name: "Unit test" - uses: "phpDocumentor/.github/.github/workflows/continuous-integration.yml@0.5.0" + uses: "phpDocumentor/.github/.github/workflows/continuous-integration.yml@v0.5.0" with: composer-root-version: "1.x-dev" From 6f00a541a2efe9ade13fed7573b19d911f8485ed Mon Sep 17 00:00:00 2001 From: Jaapio Date: Fri, 24 Nov 2023 13:01:33 +0100 Subject: [PATCH 6/6] [CI] fix yaml lint --- .github/workflows/integrate.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/integrate.yaml b/.github/workflows/integrate.yaml index b51a3bf..6a4faf8 100644 --- a/.github/workflows/integrate.yaml +++ b/.github/workflows/integrate.yaml @@ -8,7 +8,7 @@ on: # yamllint disable-line rule:truthy - "1.x" pull_request: null schedule: - - cron: '0 14 * * 1' + - cron: "0 14 * * 1" # Allow manually triggering the workflow. workflow_dispatch: null