Skip to content

Commit

Permalink
ci: psalm workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pulsejet committed Oct 14, 2023
1 parent 3fddf35 commit c982c35
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint-php.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Lint
name: lint
on:
- push
- pull_request
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/psalm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: pslam

on:
- push
- pull_request

jobs:
pslam:
runs-on: ubuntu-latest

steps:
- name: Checkout server
uses: actions/checkout@v3
with:
submodules: true
repository: nextcloud/server
ref: stable27

- name: Checkout the app
uses: actions/checkout@v3
with:
path: apps/memories

- name: Set up php ${{ matrix.php-versions }}
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
tools: phpunit
extensions: mbstring, iconv, fileinfo, intl
coverage: none

- name: Run tests
run: |
cd apps/memories
make install-tools
make psalm
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ exiftool:
install-tools:
mkdir -p tools
composer require --dev --working-dir=tools friendsofphp/php-cs-fixer vimeo/psalm
composer install

php-lint:
tools/vendor/bin/php-cs-fixer fix lib
Expand Down
2 changes: 1 addition & 1 deletion lib/ClustersBackend/Backend.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ abstract public function getClustersInternal(int $fileid = 0): array;
/**
* Get a cluster ID for the given cluster.
*
* @return string|int
* @return int|string
*/
abstract public static function getClusterId(array $cluster);

Expand Down

0 comments on commit c982c35

Please sign in to comment.