Răsfoiți Sursa

Add PHP linting in Linting phase instead running last (#2511)

* Add PHP linting in Linting phase instead running last

* Change image

* Update path

* Update "Title"
Jaap Marcus 4 ani în urmă
părinte
comite
31b554c100
1 a modificat fișierele cu 7 adăugiri și 9 ștergeri
  1. 7 9
      .drone.yml

+ 7 - 9
.drone.yml

@@ -35,9 +35,6 @@ steps:
 - name: Run config tests 
   commands:
   - bats ./test/config-tests.bats
-- name: Run Check PHP
-  commands: 
-  - ./test/check_php.sh
 
 trigger:
   event: [ pull_request, push ]
@@ -89,10 +86,7 @@ steps:
 - name: Run config tests 
   commands:
   - bats ./test/config-tests.bats
-- name: Run Check PHP
-  commands: 
-  - ./test/check_php.sh
-
+  
 trigger:
   event: [ pull_request, push ]
   ref:
@@ -111,10 +105,14 @@ concurrency:
   limit: 1
 
 steps:
-  - name: shellcheck
+  - name: Shellcheck
     image: koalaman/shellcheck-alpine
     commands:
     - ./test/shellcheck.sh
+  - name: PHP 8.1
+    image: php:8.1-cli-bullseye
+    commands:
+      - ./test/check_php.sh ./web/
 
 trigger:
    event: [ pull_request, push ] 
@@ -169,4 +167,4 @@ trigger:
 
 ---
 kind: signature
-hmac: 07f845f902f859c97c78a346d340f7fb8d4b1242581a242e592b149c13428f50
+hmac: fc8c5e5e36ef990ef96ad8c03d55adb814fe8021a40e67877d7dc84a7c36a12f