summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorSean Molenaar <sean@seanmolenaar.eu>2021-02-04 20:58:05 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-02-05 07:27:11 +0100
commit540608682988c627d46b6891089183568db06798 (patch)
tree1dc9c4b0cefc3b5484d18ba9045d02cc5dfabdd3 /.github
parent5c7838e9bdd7081008483913def07a3233daa9fd (diff)
Psalm: Fix class loading
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/static-code-check.yml25
1 files changed, 21 insertions, 4 deletions
diff --git a/.github/workflows/static-code-check.yml b/.github/workflows/static-code-check.yml
index cad11c939..4473057bb 100644
--- a/.github/workflows/static-code-check.yml
+++ b/.github/workflows/static-code-check.yml
@@ -7,8 +7,10 @@ jobs:
continue-on-error: true
strategy:
matrix:
- ocp-version: [ '21.0.0.x-dev', 'v20.0.5' ]
- name: "Psalm: Nextcloud ${{ matrix.ocp-version }}"
+ php-versions: [ '7.4' ]
+ nextcloud: [ 'stable20', 'v21.0.0RC1' ]
+ database: [ 'sqlite' ]
+ name: "Psalm: Nextcloud ${{ matrix.nextcloud }}"
steps:
- name: Checkout
uses: actions/checkout@master
@@ -16,10 +18,25 @@ jobs:
uses: shivammathur/setup-php@master
with:
php-version: 7.4
+ extensions: pdo_sqlite,pdo_mysql,pdo_pgsql,gd,zip
coverage: none
+
+ - name: Set up server non MySQL
+ uses: SMillerDev/nextcloud-actions/setup-nextcloud@main
+ with:
+ cron: true
+ version: ${{ matrix.nextcloud }}
+ database-type: ${{ matrix.database }}
+
- name: Install dependencies
run: composer install
- - name: Install dependencies
- run: composer require --dev christophwurst/nextcloud:${{ matrix.ocp-version }}
+
+ - name: Configure server with app
+ uses: SMillerDev/nextcloud-actions/setup-nextcloud-app@main
+ with:
+ app: 'news'
+ check-code: false
+
- name: Run coding standards check
+ working-directory: ../server/apps/news
run: ./vendor/bin/psalm \ No newline at end of file