Skip to content

Commit

Permalink
Merge pull request #87 from Hi-Folks/develop
Browse files Browse the repository at this point in the history
v0.3.7
  • Loading branch information
roberto-butti authored Aug 11, 2021
2 parents c12b4df + 40623a6 commit b767669
Show file tree
Hide file tree
Showing 7 changed files with 549 additions and 430 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ public/mix-manifest.json
/.env.prod
/Makefile.param.prod
/public/google*.html

/output/
/.vscode/
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Changelog

## 0.3.7 - 2021-08-11

- Add launching tests via PestPHP

## 0.3.6 - 2021-06-13

### Add
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ __Ghygen__ allows you creating your __Yaml__ file for __GitHub Actions__, for La
- setup __Sqlite__ in memory database;
- run migrations;
- __execute tests__ via phpunit;
- __execute tests__ via PestPHP;
- static __code analysis__ with phpstan or psalm;
- code sniffer (via phpcs for __PSR12__ compatibility);
- __validate Yaml__ file;
Expand Down
5 changes: 5 additions & 0 deletions app/Traits/Form/CodeQuality.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
trait CodeQuality
{
public $stepExecutePhpunit; //true
public $stepExecutePestphp; //false
public $stepExecuteCodeSniffer; //false
public $stepDirCodeSniffer; // app
public $stepInstallCodeSniffer; //true
Expand All @@ -17,6 +18,7 @@ trait CodeQuality
public function loadDefaultsCodeQuality(): void
{
$this->stepExecutePhpunit = true;
$this->stepExecutePestphp = false;
$this->stepExecuteCodeSniffer = false;
$this->stepDirCodeSniffer = "app";
$this->stepInstallCodeSniffer = true;
Expand All @@ -34,7 +36,9 @@ public function loadCodeQualityFromJson($j): void
data_fill($j, "stepDirStaticAnalysis", "app");
data_fill($j, "stepInstallStaticAnalysis", true);
data_fill($j, "stepToolStaticAnalysis", 'larastan');
data_fill($j, "stepExecutePestphp", false);
$this->stepExecutePhpunit = $j->stepExecutePhpunit;
$this->stepExecutePestphp = $j->stepExecutePestphp;
$this->stepExecuteCodeSniffer = $j->stepExecuteCodeSniffer;
$this->stepDirCodeSniffer = $j->stepDirCodeSniffer;
$this->stepInstallCodeSniffer = $j->stepInstallCodeSniffer;
Expand All @@ -48,6 +52,7 @@ public function loadCodeQualityFromJson($j): void
public function setDataCodeQuality($data)
{
$data["stepExecutePhpunit"] = $this->stepExecutePhpunit;
$data["stepExecutePestphp"] = $this->stepExecutePestphp;
$data["stepExecuteCodeSniffer"] = $this->stepExecuteCodeSniffer;
$data["stepDirCodeSniffer"] = $this->stepDirCodeSniffer;
$data["stepInstallCodeSniffer"] = $this->stepInstallCodeSniffer;
Expand Down
Loading

0 comments on commit b767669

Please sign in to comment.