diff options
author | Joas Schilling <coding@schilljs.com> | 2022-10-08 16:43:22 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-10-08 16:43:22 +0300 |
commit | 965c09b622dbc6d53735b1a3821fe4af28737b30 (patch) | |
tree | f818abbca368c7475648db482455b4a6c0326033 | |
parent | 4c7b2fb047a3be16ccab23dd0a5a504bc52f6e7b (diff) |
Update psalm CIv1.15.0
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | .github/workflows/psalm.yml (renamed from .github/workflows/static-analysis.yml) | 29 | ||||
-rw-r--r-- | tests/psalm-baseline.xml | 6 |
2 files changed, 23 insertions, 12 deletions
diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/psalm.yml index 99b18a1..0f8dece 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/psalm.yml @@ -1,9 +1,20 @@ +# This workflow is provided via the organization template repository +# +# https://github.com/nextcloud/.github +# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization + name: Static analysis -on: [pull_request] +on: + pull_request: + push: + branches: + - master + - main + - stable* jobs: - static-psalm-analysis: + static-analysis: runs-on: ubuntu-latest strategy: # do not stop on another job's failure @@ -13,23 +24,27 @@ jobs: name: Nextcloud ${{ matrix.ocp-version }} steps: - name: Checkout - uses: actions/checkout@master + uses: actions/checkout@v3 + - name: Set up php - uses: shivammathur/setup-php@master + uses: shivammathur/setup-php@v2 with: php-version: 7.4 tools: composer:v1 coverage: none + - name: Install dependencies run: composer i + - name: Install dependencies - run: composer require --dev christophwurst/nextcloud:${{ matrix.ocp-version }} --ignore-platform-reqs + run: composer require --dev nextcloud/ocp:${{ matrix.ocp-version }} --ignore-platform-reqs + - name: Run coding standards check run: composer run psalm summary: runs-on: ubuntu-latest - needs: static-psalm-analysis + needs: static-analysis if: always() @@ -37,4 +52,4 @@ jobs: steps: - name: Summary status - run: if ${{ needs.static-psalm-analysis.result != 'success' }}; then exit 1; fi + run: if ${{ needs.static-analysis.result != 'success' }}; then exit 1; fi diff --git a/tests/psalm-baseline.xml b/tests/psalm-baseline.xml index c70dc2c..daddf14 100644 --- a/tests/psalm-baseline.xml +++ b/tests/psalm-baseline.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<files psalm-version="4.7.0@d4377c0baf3ffbf0b1ec6998e8d1be2a40971005"> +<files psalm-version="4.28.0@52e96bea381e6cb07a672aefec791a5817694a26"> <file src="lib/Activity/Listener.php"> <MissingDependency occurrences="3"> <code>$this->rootFolder</code> @@ -11,10 +11,6 @@ </UndefinedClass> </file> <file src="lib/CurrentUser.php"> - <InvalidCatch occurrences="1"/> - <MissingDependency occurrences="1"> - <code>ShareNotFound</code> - </MissingDependency> <NoInterfaceProperties occurrences="1"> <code>$this->request->server</code> </NoInterfaceProperties> |