From 6ebff61966f2400b6694f29661c602ecaaaf40d4 Mon Sep 17 00:00:00 2001 From: Florian Cellier Date: Thu, 15 Sep 2022 09:22:34 +0200 Subject: [PATCH 01/10] Update composer.json --- composer.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index 3f6312d..cd8a4d5 100644 --- a/composer.json +++ b/composer.json @@ -12,14 +12,14 @@ "license": "MIT", "homepage": "https://github.com/fetzi/phpspec-watcher", "require": { - "php": "^7.2", + "php": "^7.2 || ^8.1", "clue/stdio-react": "^2.3", "jolicode/jolinotif": "^2.0.", "react/event-loop": "^1.1", - "symfony/console": "^4.0 || ^5.0", - "symfony/finder": "^4.0 || ^5.0", - "symfony/process": "^4.0 || ^5.0", - "symfony/yaml": "^4.0 || ^5.0" + "symfony/console": "^4.0 || ^5.0 || ^6.0", + "symfony/finder": "^4.0 || ^5.0 || ^6.0", + "symfony/process": "^4.0 || ^5.0 || ^6.0", + "symfony/yaml": "^4.0 || ^5.0 || ^6.0" }, "require-dev": { "phpunit/phpunit": "^8.4", From b0745cb3e5c71ce9f78ff0cef2f141ae973c4f15 Mon Sep 17 00:00:00 2001 From: Florian Cellier Date: Wed, 4 Sep 2024 18:36:55 +0200 Subject: [PATCH 02/10] Update composer.json --- composer.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index cd8a4d5..211efbc 100644 --- a/composer.json +++ b/composer.json @@ -16,10 +16,10 @@ "clue/stdio-react": "^2.3", "jolicode/jolinotif": "^2.0.", "react/event-loop": "^1.1", - "symfony/console": "^4.0 || ^5.0 || ^6.0", - "symfony/finder": "^4.0 || ^5.0 || ^6.0", - "symfony/process": "^4.0 || ^5.0 || ^6.0", - "symfony/yaml": "^4.0 || ^5.0 || ^6.0" + "symfony/console": "^4.0 || ^5.0 || ^6.0 || ^7.0", + "symfony/finder": "^4.0 || ^5.0 || ^6.0 || ^7.0", + "symfony/process": "^4.0 || ^5.0 || ^6.0 || ^7.0", + "symfony/yaml": "^4.0 || ^5.0 || ^6.0 || ^7.0" }, "require-dev": { "phpunit/phpunit": "^8.4", From 065b01749f3b6b9cd6437f3dc785fc8107ebb4f8 Mon Sep 17 00:00:00 2001 From: Florian Cellier Date: Sun, 13 Oct 2024 10:58:21 +0200 Subject: [PATCH 03/10] [Command] Explicit return type required --- src/Commands/WatchCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Commands/WatchCommand.php b/src/Commands/WatchCommand.php index cb8fbbb..b348610 100644 --- a/src/Commands/WatchCommand.php +++ b/src/Commands/WatchCommand.php @@ -19,7 +19,7 @@ protected function configure() ->setDescription('Watches for file changes and triggers phpspec tests'); } - protected function execute(InputInterface $input, OutputInterface $output) + protected function execute(InputInterface $input, OutputInterface $output): int { $output = new SymfonyStyle($input, $output); $this->displayInfo($output); From 07c2160e6f4484d5a05b3ca9c375d5ac91f06f50 Mon Sep 17 00:00:00 2001 From: Florian Cellier Date: Sun, 13 Oct 2024 10:58:35 +0200 Subject: [PATCH 04/10] [Command] Explicit return type required --- src/Commands/InitCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Commands/InitCommand.php b/src/Commands/InitCommand.php index 06cc374..07e013e 100644 --- a/src/Commands/InitCommand.php +++ b/src/Commands/InitCommand.php @@ -16,7 +16,7 @@ protected function configure() ->setDescription('initializes the phpspec watcher configuration file in the current working directory.'); } - protected function execute(InputInterface $input, OutputInterface $output) + protected function execute(InputInterface $input, OutputInterface $output): int { $output = new SymfonyStyle($input, $output); From 79a44e4979bba0ae12e9e6f451e0f5e6031dd678 Mon Sep 17 00:00:00 2001 From: gokakyu Date: Sun, 13 Oct 2024 11:15:39 +0200 Subject: [PATCH 05/10] [Dependencies] Be compatible with new symfony commad console return type required --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 211efbc..54b945c 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ "license": "MIT", "homepage": "https://github.com/fetzi/phpspec-watcher", "require": { - "php": "^7.2 || ^8.1", + "php": "^7.0 || ^8.0", "clue/stdio-react": "^2.3", "jolicode/jolinotif": "^2.0.", "react/event-loop": "^1.1", From 7269e39f2f18b08d45bde73383aacb3e55b4d91a Mon Sep 17 00:00:00 2001 From: gokakyu Date: Sun, 13 Oct 2024 11:19:13 +0200 Subject: [PATCH 06/10] WIP --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 54b945c..ff2b79f 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ "license": "MIT", "homepage": "https://github.com/fetzi/phpspec-watcher", "require": { - "php": "^7.0 || ^8.0", + "php": "^7.2 || ^8.0", "clue/stdio-react": "^2.3", "jolicode/jolinotif": "^2.0.", "react/event-loop": "^1.1", From c8e68f9be77db4334b7c1c1c4674a0730e44c8a8 Mon Sep 17 00:00:00 2001 From: gokakyu Date: Sun, 13 Oct 2024 11:22:55 +0200 Subject: [PATCH 07/10] WIP --- .github/workflows/php.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index a70b2c1..57c14ea 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -8,7 +8,7 @@ jobs: strategy: fail-fast: true matrix: - php: [7.2, 7.3, 7.4] + php: [7.2, 7.3, 7.4, 8.1] name: PHP ${{ matrix.php }} From 9a1e6b50e9a61f5c812a3439eff74a146f41ec62 Mon Sep 17 00:00:00 2001 From: gokakyu Date: Sun, 13 Oct 2024 11:23:17 +0200 Subject: [PATCH 08/10] WIP --- .github/workflows/php.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 57c14ea..5e4458b 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -8,7 +8,7 @@ jobs: strategy: fail-fast: true matrix: - php: [7.2, 7.3, 7.4, 8.1] + php: [7.2, 7.3, 7.4, 8.1, 8.2, 8.3] name: PHP ${{ matrix.php }} From 850702a8537483dd1df67d3f6c4645da45484d19 Mon Sep 17 00:00:00 2001 From: gokakyu Date: Sun, 13 Oct 2024 11:32:47 +0200 Subject: [PATCH 09/10] WIP --- .github/workflows/{php.yml => php.yaml} | 2 +- .github/workflows/test.yml | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) rename .github/workflows/{php.yml => php.yaml} (96%) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/php.yml b/.github/workflows/php.yaml similarity index 96% rename from .github/workflows/php.yml rename to .github/workflows/php.yaml index 5e4458b..1626eb2 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yaml @@ -19,7 +19,7 @@ jobs: uses: shivammathur/setup-php@v1 with: php-version: ${{ matrix.php }} - extension-csv: mbstring + extension-csv: mbst ring coverage: none - name: Check PHP version diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..15a61d6 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,18 @@ +name: GitHub Actions Demo +run-name: ${{ github.actor }} is testing out GitHub Actions 🚀 +on: [push] +jobs: + Explore-GitHub-Actions: + runs-on: ubuntu-latest + steps: + - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." + - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" + - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." + - name: Check out repository code + uses: actions/checkout@v4 + - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." + - run: echo "🖥️ The workflow is now ready to test your code on the runner." + - name: List files in the repository + run: | + ls ${{ github.workspace }} + - run: echo "🍏 This job's status is ${{ job.status }}." From b8d13b413ae06f7b4d05ee9b8cb95726d19992ff Mon Sep 17 00:00:00 2001 From: gokakyu Date: Sun, 13 Oct 2024 11:34:19 +0200 Subject: [PATCH 10/10] WIP --- .github/workflows/php.yaml | 2 +- .github/workflows/test.yml | 18 ------------------ 2 files changed, 1 insertion(+), 19 deletions(-) delete mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/php.yaml b/.github/workflows/php.yaml index 1626eb2..7f7b9db 100644 --- a/.github/workflows/php.yaml +++ b/.github/workflows/php.yaml @@ -16,7 +16,7 @@ jobs: - uses: actions/checkout@v1 - name: Setup PHP version - uses: shivammathur/setup-php@v1 + uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} extension-csv: mbst ring diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 15a61d6..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: GitHub Actions Demo -run-name: ${{ github.actor }} is testing out GitHub Actions 🚀 -on: [push] -jobs: - Explore-GitHub-Actions: - runs-on: ubuntu-latest - steps: - - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." - - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" - - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." - - name: Check out repository code - uses: actions/checkout@v4 - - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." - - run: echo "🖥️ The workflow is now ready to test your code on the runner." - - name: List files in the repository - run: | - ls ${{ github.workspace }} - - run: echo "🍏 This job's status is ${{ job.status }}."