aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/static-code-analysis.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/static-code-analysis.yml')
-rw-r--r--.github/workflows/static-code-analysis.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.github/workflows/static-code-analysis.yml b/.github/workflows/static-code-analysis.yml
index f2efe3ea70e..c259a2b0868 100644
--- a/.github/workflows/static-code-analysis.yml
+++ b/.github/workflows/static-code-analysis.yml
@@ -111,3 +111,29 @@ jobs:
- name: Show potential changes in Psalm baseline
if: always()
run: git diff --exit-code -- . ':!lib/composer'
+
+ static-code-analysis-ncu:
+ runs-on: ubuntu-latest
+
+ if: ${{ github.event_name != 'push' && github.repository_owner != 'nextcloud-gmbh' }}
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
+ with:
+ submodules: true
+
+ - name: Set up php
+ uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 #v2.31.1
+ with:
+ php-version: '8.1'
+ extensions: ctype,curl,dom,fileinfo,gd,imagick,intl,json,mbstring,openssl,pdo_sqlite,posix,sqlite,xml,zip
+ coverage: none
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+
+ - name: Composer install
+ run: composer i
+
+ - name: Psalm
+ run: composer run psalm:ncu -- --threads=1 --monochrome --no-progress --output-format=github