Skip to content

Commit

Permalink
Add PHP 8.3, Laravel 11 and Node 20 to GitHub Actions Workflow
Browse files Browse the repository at this point in the history
- Adding select for PHP 8.3 in the workflow files
- Adding select for Laravel 11 in the workflow files
- Adding select for Node 20 in the workflow files
  • Loading branch information
roberto-butti committed Mar 17, 2024
1 parent 9a83e98 commit 51fead0
Show file tree
Hide file tree
Showing 11 changed files with 37 additions and 28 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@

# Changelog

## 1.0.1 - 2024-03-17
- Adding select for PHP 8.3 in the workflow files
- Adding select for Laravel 11 in the workflow files
- Adding select for Node 20 in the workflow files


## 1.0.0 - 2024-03-17
- Upgrading to Laravel v11
- Upgrading to PestPHP v2
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ __Ghygen__ allows you creating your __Yaml__ file for __GitHub Actions__, for La
- select branches;
- enable caching for all vendors;
- enable __caching__ PHP packages;
- select __multiple__ PHP versions (8.2, 8.1, 8.0, 7.4);
- select __multiple Laravel__ versions (10, 9, 8, 7, 6), useful if you are developing a Laravel Package and you want to test it with multiple Laravel version;
- select __multiple__ PHP versions (8.3, 8.2, 8.1, 8.0, 7.4);
- select __multiple Laravel__ versions (11, 10, 9, 8, 7, 6), useful if you are developing a Laravel Package and you want to test it with multiple Laravel version;
- select __Node__ version for NPM (executing scripts via `npm run`);
- caching node packages;
- setup __Mysql__ Database service;
Expand Down
2 changes: 2 additions & 0 deletions app/Livewire/ConfiguratorForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ private function loadFromJson(object $j): void

public function mount(): void
{

$this->fill(request()->only('code'));

Log::debug(__METHOD__.' Code : '.$this->code);
$codeNotFound = false;
$this->loadDefaults();
Expand Down
6 changes: 3 additions & 3 deletions app/Traits/Form/BaseWorkflow.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ trait BaseWorkflow
/**
* @var array<string>
*/
public array $stepPhpVersions; // 8.2
public array $stepPhpVersions; // 8.3

public bool $stepNodejs; // false

Expand Down Expand Up @@ -97,9 +97,9 @@ public function loadDefaultsBaseWorkflow(): void
$this->postgresqlVersion = 'latest';
$this->postgresqlDatabaseName = 'db_test_laravel';
$this->postgresqlDatabasePort = 55432;
$this->stepPhpVersions = ['8.2', '8.1', '8.0', '7.4'];
$this->stepPhpVersions = ['8.3', '8.2', '8.1', '8.0', '7.4'];
$this->stepNodejs = false;
$this->stepNodejsVersion = '18.x';
$this->stepNodejsVersion = '20.x';
$this->stepCachePackages = true;
$this->stepCacheVendors = true;
$this->stepCacheNpmModules = true;
Expand Down
1 change: 1 addition & 0 deletions app/Traits/Form/LaravelStuff.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public function loadDefaultsLaravelStuff(): void
$this->matrixLaravel = false;
$this->matrixLaravelVersions = [];
$this->matrixTestbenchDependencies = [
'11.*' => '9.*',
'10.*' => '8.*',
'9.*' => '7.*',
'8.*' => '6.*',
Expand Down
8 changes: 4 additions & 4 deletions resources/templates/json/laravelapp.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"on_pullrequest": false,
"stepGenerateKey": true,
"stepPhpVersions": [
"8.2",
"8.1"
"8.3",
"8.2"
],
"on_push_branches": [
"main",
Expand All @@ -26,7 +26,7 @@
"mysqlPasswordType": "skip",
"postgresqlVersion": "latest",
"stepCachePackages": true,
"stepNodejsVersion": "18.x",
"stepNodejsVersion": "20.x",
"stepRunMigrations": true,
"postgresqlDatabase": "postgresql",
"postgresqlPassword": "postgres",
Expand All @@ -36,7 +36,7 @@
"stepEnvTemplateFile": ".env.example",
"matrixLaravelVersions": [],
"stepDirStaticAnalysis": "app",
"stepPhpVersionsString": "[ '8.2','8.1' ]",
"stepPhpVersionsString": "[ '8.3','8.2' ]",
"postgresqlDatabaseName": "db_test_laravel",
"postgresqlDatabasePort": 55432,
"postgresqlPasswordType": "hardcoded",
Expand Down
12 changes: 6 additions & 6 deletions resources/templates/json/laravelpackage.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"on_pullrequest": false,
"stepGenerateKey": false,
"stepPhpVersions": [
"8.2",
"8.1"
"8.3",
"8.2"
],
"on_push_branches": [
"main",
Expand All @@ -26,7 +26,7 @@
"mysqlPasswordType": "skip",
"postgresqlVersion": "latest",
"stepCachePackages": false,
"stepNodejsVersion": "18.x",
"stepNodejsVersion": "20.x",
"stepRunMigrations": false,
"postgresqlDatabase": "postgresql",
"postgresqlPassword": "postgres",
Expand All @@ -35,9 +35,9 @@
"stepCacheNpmModules": false,
"stepEnvTemplateFile": ".env.example",
"matrixLaravel": true,
"matrixLaravelVersions": ["10.*"],
"matrixLaravelVersions": ["11.*"],
"stepDirStaticAnalysis": "src",
"stepPhpVersionsString": "[ '8.2','8.1' ]",
"stepPhpVersionsString": "[ '8.3','8.2' ]",
"postgresqlDatabaseName": "db_test_laravel",
"postgresqlDatabasePort": 55432,
"postgresqlPasswordType": "hardcoded",
Expand All @@ -51,6 +51,6 @@
"stepExecuteStaticAnalysis": "1",
"stepFixStoragePermissions": false,
"stepInstallStaticAnalysis": true,
"matrixLaravelVersionsString": "[ '10.*' ]"
"matrixLaravelVersionsString": "[ '11.*' ]"

}
8 changes: 4 additions & 4 deletions resources/templates/json/laravelpostgresql.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"on_pullrequest": false,
"stepGenerateKey": true,
"stepPhpVersions": [
"8.2",
"8.1"
"8.3",
"8.2"
],
"on_push_branches": [
"main",
Expand All @@ -26,7 +26,7 @@
"mysqlPasswordType": "skip",
"postgresqlVersion": "latest",
"stepCachePackages": true,
"stepNodejsVersion": "18.x",
"stepNodejsVersion": "20.x",
"stepRunMigrations": true,
"postgresqlDatabase": "postgresql",
"postgresqlPassword": "postgres",
Expand All @@ -36,7 +36,7 @@
"stepEnvTemplateFile": ".env.example",
"matrixLaravelVersions": [],
"stepDirStaticAnalysis": "app",
"stepPhpVersionsString": "[ '8.2','8.1' ]",
"stepPhpVersionsString": "[ '8.3','8.2' ]",
"postgresqlDatabaseName": "db_test_laravel",
"postgresqlDatabasePort": 55432,
"postgresqlPasswordType": "hardcoded",
Expand Down
8 changes: 4 additions & 4 deletions resources/templates/json/phppackage.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"on_pullrequest": false,
"stepGenerateKey": false,
"stepPhpVersions": [
"8.2",
"8.1"
"8.3",
"8.2"
],
"on_push_branches": [
"master",
Expand All @@ -27,7 +27,7 @@
"mysqlPasswordType": "skip",
"postgresqlVersion": "latest",
"stepCachePackages": false,
"stepNodejsVersion": "18.x",
"stepNodejsVersion": "20.x",
"stepRunMigrations": false,
"postgresqlDatabase": "postgresql",
"postgresqlPassword": "postgres",
Expand All @@ -37,7 +37,7 @@
"stepEnvTemplateFile": ".env.example",
"matrixLaravelVersions": [],
"stepDirStaticAnalysis": "src",
"stepPhpVersionsString": "[ '8.2','8.1' ]",
"stepPhpVersionsString": "[ '8.3','8.2' ]",
"postgresqlDatabaseName": "db_test_laravel",
"postgresqlDatabasePort": 55432,
"postgresqlPasswordType": "hardcoded",
Expand Down
6 changes: 3 additions & 3 deletions resources/views/livewire/configurator-form.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@
model="stepPhpVersions"
name="stepPhpVersions"
label="PHP Versions"
:list="['8.2' => '8.2', '8.1' => '8.1', '8.0'=>'8.0','7.4'=>'7.4','7.3'=>'7.3']"
:list="['8.3' => '8.3', '8.2' => '8.2', '8.1' => '8.1', '8.0'=>'8.0','7.4'=>'7.4','7.3'=>'7.3']"
help="Select PHP Versions (Multiple)"
multiselect=1>
</x-form.input-select>
Expand All @@ -317,8 +317,8 @@
model="stepNodejsVersion"
name="stepNodejsVersion"
label="Node Js Version"
help="Define the nodejs Version. 19.x is the last stable and it is the default value.
Select 18.x if you want to use LTS version.">
help="Define the nodejs Version. 21.x is the latest stable version.
Select 20.x if you want to use LTS version and it is the default value.">
</x-form.input-text>
</x-form.input-conditional-checkbox>
</div>
Expand Down
4 changes: 2 additions & 2 deletions resources/views/livewire/form/laravel-stuff.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
model="matrixLaravelVersions"
name="matrixLaravelVersions"
label="Laravel Versions"
:list="['10.*'=>'10.*', '9.*'=>'9.*', '8.*'=>'8.*','7.*'=>'7.*','6.*'=>'6.*']"
help="Select Laravel Versions (Multiple). This is useful if you are building a package and want to test your package with Laravel 10, 9, 8 , 7 and 6"
:list="['11.*'=>'11.*', '10.*'=>'10.*', '9.*'=>'9.*', '8.*'=>'8.*','7.*'=>'7.*','6.*'=>'6.*']"
help="Select Laravel Versions (Multiple). This is useful if you are building a package and want to test your package with Laravel 11, 10, 9, 8 , 7 and 6"
multiselect=1>
</x-form.input-select>

Expand Down

0 comments on commit 51fead0

Please sign in to comment.