summaryrefslogtreecommitdiffstats
path: root/.github/workflows/api-php-static-code-check.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/api-php-static-code-check.yml')
-rw-r--r--.github/workflows/api-php-static-code-check.yml23
1 files changed, 15 insertions, 8 deletions
diff --git a/.github/workflows/api-php-static-code-check.yml b/.github/workflows/api-php-static-code-check.yml
index 5f9216a4b..9a37fc40c 100644
--- a/.github/workflows/api-php-static-code-check.yml
+++ b/.github/workflows/api-php-static-code-check.yml
@@ -7,19 +7,26 @@ jobs:
continue-on-error: true
strategy:
matrix:
- php-versions: [ '7.4' ]
- nextcloud: [ 'stable22' ]
+ php-versions: ['8.0', '8.1', '8.2' ]
+ nextcloud: [ 'stable27' ]
database: [ 'sqlite' ]
- name: "phpstan: Nextcloud ${{ matrix.nextcloud }}"
+ include:
+ - php-versions: 8.2
+ nextcloud: pre-release
+ database: sqlite
+ experimental: true
+ name: "phpstan: Nextcloud ${{ matrix.nextcloud }} with ${{ matrix.php-versions }}"
steps:
- name: Checkout
- uses: actions/checkout@v2.3.4
+ uses: actions/checkout@v4
- name: Set up php
uses: shivammathur/setup-php@master
with:
- php-version: 7.4
+ php-version: ${{ matrix.php-versions }}
extensions: pdo_sqlite,pdo_mysql,pdo_pgsql,gd,zip
coverage: none
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Set up server non MySQL
uses: SMillerDev/nextcloud-actions/setup-nextcloud@main
@@ -29,13 +36,13 @@ jobs:
database-type: ${{ matrix.database }}
- name: Build app
- run: make
+ run: make composer
- name: Configure server with app
uses: SMillerDev/nextcloud-actions/setup-nextcloud-app@main
with:
app: 'news'
- check-code: true
+ check-code: false
force: true
- name: Prep code scanning
@@ -44,7 +51,7 @@ jobs:
- name: PHPCS
working-directory: ../server/apps/news
- run: pwd && make phpcs #debug pwd
+ run: make phpcs
- name: PHPStan
working-directory: ../server/apps/news