Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2020-07-10 11:58:33 +0300
committerMorris Jobke <hey@morrisjobke.de>2020-08-18 09:58:19 +0300
commit7257793fc4ec5c40c193ca12b5747a4f49c6f4fe (patch)
treed87867bef87995b677a5bca6af84b165b1618ee8 /.github
parent9809b7722166fa05733bda042bd36d03b0be4704 (diff)
Hello psalm
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/static-code-analysis.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/.github/workflows/static-code-analysis.yml b/.github/workflows/static-code-analysis.yml
new file mode 100644
index 00000000000..5633c3abc29
--- /dev/null
+++ b/.github/workflows/static-code-analysis.yml
@@ -0,0 +1,22 @@
+name: Static code analysis
+
+on: [pull_request]
+
+jobs:
+ static-code-analysis:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: Checkout submodules
+ shell: bash
+ run: |
+ auth_header="$(git config --local --get http.https://github.com/.extraheader)"
+ git submodule sync --recursive
+ git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
+ - name: Remove composer.json
+ shell: bash
+ run: rm composer.json composer.lock
+ - name: Psalm
+ uses: docker://jakzal/phpqa:php7.4-alpine
+ with:
+ args: psalm --monochrome --no-progress --output-format=text