summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-04-15 15:01:27 +0200
committerCarl Schwan <carl@carlschwan.eu>2022-04-15 17:40:33 +0200
commit46df90a0fbb0e2422e3c56b6c786b64a2e8478b0 (patch)
treeedac893b8884ecbed4b10ce5f31d9047c67f399a /.github
parent9e20993c4d8b00d3b8eb19a804f543f17335b47b (diff)
Add psalm static analysis
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/lint-php.yml2
-rw-r--r--.github/workflows/static-analysis.yml26
2 files changed, 27 insertions, 1 deletions
diff --git a/.github/workflows/lint-php.yml b/.github/workflows/lint-php.yml
index a4abc44f..d8694efd 100644
--- a/.github/workflows/lint-php.yml
+++ b/.github/workflows/lint-php.yml
@@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- php-versions: ["7.4", "8.0"]
+ php-versions: ["7.4", "8.0", "8.1"]
name: php-lint
diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml
new file mode 100644
index 00000000..8fa3c9ec
--- /dev/null
+++ b/.github/workflows/static-analysis.yml
@@ -0,0 +1,26 @@
+name: Static analysis
+
+on: [pull_request]
+
+jobs:
+ static-psalm-analysis:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ ocp-version: [ 'dev-master' ]
+ name: Nextcloud ${{ matrix.ocp-version }}
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+ - name: Set up php
+ 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 }}
+ - name: Run coding standards check
+ run: composer run psalm