]> git.mxchange.org Git - friendica.git/commitdiff
Enable PHP linting per Drone
authorPhilipp <admin@philipp.info>
Thu, 13 May 2021 16:47:12 +0000 (18:47 +0200)
committerPhilipp <admin@philipp.info>
Thu, 13 May 2021 16:47:12 +0000 (18:47 +0200)
.drone.yml
.github/workflows/lint.yml

index 53be71e3173fa15b5057c5f192e0fbcb52d34fbf..74dacfca4981d8db84a6eaff54f5c6cc44f90381 100644 (file)
@@ -11,4 +11,34 @@ steps:
   - name: Check default
     image: friendicaci/transifex
     commands:
-      - /check-messages.sh
\ No newline at end of file
+      - /check-messages.sh
+---
+kind: pipeline
+type: docker
+name: php7.3-lint
+
+steps:
+  - name: Test
+    image: php:7.3
+    commands:
+      - ./bin/composer.phar run lint
+---
+kind: pipeline
+type: docker
+name: php7.4-lint
+
+steps:
+  - name: Test
+    image: php:7.4
+    commands:
+      - ./bin/composer.phar run lint
+---
+kind: pipeline
+type: docker
+name: php8.0-lint
+
+steps:
+  - name: Test
+    image: php:8.0
+    commands:
+      - ./bin/composer.phar run lint
index 72f53c901f80bd43707d9c0771c2c3ebb124c6c5..8612ee740d7905fa145eec30b5eaba8df7967118 100644 (file)
@@ -2,23 +2,6 @@ name: Lint
 on: pull_request
 
 jobs:
-  php-linters:
-    name: php${{ matrix.php-versions }} lint
-    runs-on: ubuntu-latest
-    strategy:
-      matrix:
-        php-versions: ['7.3', '7.4', '8.0']
-    steps:
-      - name: Checkout
-        uses: actions/checkout@v2
-      - name: Set up php${{ matrix.php-versions }}
-        uses: shivammathur/setup-php@master
-        with:
-          php-version: ${{ matrix.php-versions }}
-          coverage: none
-      - name: Lint
-        run: bin/composer.phar run lint
-
   php-cs-fixer:
     name: php-cs check
     runs-on: ubuntu-latest