From d94f568990b72f46024632f58cbe0ae555bdf1e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Sat, 14 Oct 2023 13:15:52 +0200 Subject: [PATCH 1/2] Annotate phpstan findings --- .github/workflows/back-end.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/back-end.yml b/.github/workflows/back-end.yml index bbf0080d..e8168232 100644 --- a/.github/workflows/back-end.yml +++ b/.github/workflows/back-end.yml @@ -137,7 +137,7 @@ jobs: ! git grep --line-number -e '\$this\s*->\s*\$this' -- ':!:*/back-end\.yml' - name: "Perform static analysis" - run: "true TODO || composer exec -- phpstan analyze --level=5 src/" + run: "composer exec -- phpstan analyze --level=5 src/ || true 'Annotate only'" coding_standards: name: "4️⃣ Coding Standards" From 9bf5c1a77af81596bd6fed22d0e7fb8f83f6be53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Sat, 14 Oct 2023 13:19:16 +0200 Subject: [PATCH 2/2] Update back-end.yml --- .github/workflows/back-end.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/back-end.yml b/.github/workflows/back-end.yml index e8168232..7fecc290 100644 --- a/.github/workflows/back-end.yml +++ b/.github/workflows/back-end.yml @@ -135,6 +135,9 @@ jobs: name: "Search for $this->$this typo 🐌" run: | ! git grep --line-number -e '\$this\s*->\s*\$this' -- ':!:*/back-end\.yml' + - + name: "Install orchestra/testbench" + run: "composer require --dev orchestra/testbench" - name: "Perform static analysis" run: "composer exec -- phpstan analyze --level=5 src/ || true 'Annotate only'"